Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File:
1 edited

Legend:

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

    r17 r39  
    1212
    1313*/
     14#include <stdio.h>
     15
    1416#include "demo.hpp"
    1517#include "macs.hpp"
     
    1719#include "level.hpp"
    1820#include "game.hpp"
    19 #include <stdio.h>
     21#include "dev.hpp"
    2022#include "timing.hpp"
    2123#include "fileman.hpp"
     
    2628#include "dprint.hpp"
    2729#include "netcfg.hpp"
    28 
    29 extern char *symbol_str(char *name);
    3030
    3131#ifdef __WATCOMC__
     
    4444join_struct *join_array=NULL;      // points to an array of possible joining clients
    4545extern char *get_login();
    46 extern void set_login(char *name);
     46extern void set_login(char const *name);
    4747
    4848
     
    145145        {
    146146                dprintf("Attempting to locate server %s, please wait\n",main_net_cfg->server_name);
    147                 char *sn=main_net_cfg->server_name;
     147                char const *sn=main_net_cfg->server_name;
    148148                net_server=prot->get_node_address(sn,DEFAULT_COMM_PORT,0);
    149149                if (!net_server)
     
    219219}
    220220
    221 int NF_set_file_server(char *name)
     221int NF_set_file_server(char const *name)
    222222{
    223223  if (prot)
     
    234234
    235235
    236 int NF_open_file(char *filename, char *mode)
     236int NF_open_file(char const *filename, char const *mode)
    237237{
    238238  if (prot)
Note: See TracChangeset for help on using the changeset viewer.