Changeset 58


Ignore:
Timestamp:
Mar 2, 2008, 4:02:22 PM (10 years ago)
Author:
Sam Hocevar
Message:
  • Remove a few duplicate prototype declarations.
  • Add some harmless "%s" in sprintf() calls.
Location:
abuse/trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/ant.cpp

    r56 r58  
    2626        ANT_no_see_time,
    2727        ANT_hide_flag };
    28 
    29 void *ant_ai();
    3028
    3129int can_see(game_object *o, int32_t x1, int32_t y1, int32_t x2, int32_t y2)
  • abuse/trunk/src/cache.cpp

    r56 r58  
    4848{
    4949  char msg[100];
    50   sprintf(msg,symbol_str("calc_crc"));  // this may take some time, show the user a status indicator
     50  sprintf(msg, "%s", symbol_str("calc_crc"));  // this may take some time, show the user a status indicator
    5151  if (stat_man) stat_man->push(msg,NULL);
    5252
  • abuse/trunk/src/clisp.hpp

    r57 r58  
    1111#ifndef SCADALISP
    1212int get_lprop_number(void *sybol, int def);  // returns def if symbol undefined or not number type
    13 
    14 
    15 void push_onto_list(void *object, void *&list);
    1613
    1714
  • abuse/trunk/src/imlib/jmalloc.cpp

    r56 r58  
    2626#define JM_SMALL_SIZE 128      // above 128 bytes is considered to be a big block and no hashing is done
    2727int alloc_space=ALLOC_SPACE_STATIC;
    28 
    29 extern void free_up_memory();
    3028
    3129#ifdef MEM_CHECK
     
    776774    if (j_available()<min_size)
    777775    {
    778       fprintf(stderr,not_enough_total_memory_message);
     776      fprintf(stderr, "%s", not_enough_total_memory_message);
    779777      exit(0);
    780778    }
  • abuse/trunk/src/innet.cpp

    r56 r58  
    411411    if (reg==2)   // too many players
    412412    {
    413       fprintf(stderr,symbol_str("max_players"));
     413      fprintf(stderr, "%s", symbol_str("max_players"));
    414414      delete sock;
    415415      return 0;
     
    421421    if (reg && !registered)
    422422    {
    423       fprintf(stderr,symbol_str("net_not_reg"));
     423      fprintf(stderr, "%s", symbol_str("net_not_reg"));
    424424      delete sock;
    425425      return 0;
     
    428428    if (!reg && registered)
    429429    {
    430       fprintf(stderr,symbol_str("server_not_reg"));
     430      fprintf(stderr, "%s", symbol_str("server_not_reg"));
    431431      delete sock;
    432432      return 0;
  • abuse/trunk/src/lisp.cpp

    r56 r58  
    4848int space_size[4],print_level=0,trace_level=0,trace_print_level=1000;
    4949int total_user_functions;
    50 
    51 void lprint(void *i);
    5250
    5351int current_space;  // normally set to TMP_SPACE, unless compiling or other needs
     
    14651463    dprintf("\n");
    14661464}
    1467 
    1468 void *eval(void *prog);
    14691465
    14701466void *eval_sys_function(lisp_sys_function *fun, void *arg_list);
  • abuse/trunk/src/menu.cpp

    r56 r58  
    118118  return NULL;
    119119}
    120 
    121 void main_menu();
    122120
    123121int menu(void *args, JCFont *font)             // reurns -1 on esc
  • abuse/trunk/src/nfserver.hpp

    r57 r58  
    2626bFILE *open_nfs_file(char const *filename, char const *mode);
    2727
    28 int net_init(int argc, char **argv);
    2928int NF_open_file(char const *filename, char const *mode);
    3029long NF_close(int fd);
Note: See TracChangeset for help on using the changeset viewer.