Ignore:
Timestamp:
Aug 11, 2009, 10:56:57 PM (13 years ago)
Author:
Sam Hocevar
Message:

Fix numerous compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/tcpip.cpp

    r150 r162  
    2828FILE *log_file=NULL;
    2929extern int net_start();
    30 void net_log(char *st, void *buf, long size)
     30
     31static void net_log(char const *st, void *buf, long size)
    3132{
    3233   
     
    4041
    4142
    42     fprintf(log_file,"%s%d - ",st,size);
     43    fprintf(log_file,"%s%ld - ",st,size);
    4344    int i;
    4445    for (i=0;i<size;i++)
     
    5051
    5152    for (i=0;i<size;i++)
    52     fprintf(log_file,"%02x, ",*((unsigned char *)buf+i),*((unsigned char *)buf+i));
     53    fprintf(log_file,"%02x, ",*((unsigned char *)buf+i));
    5354    fprintf(log_file,"\n");
    5455    fflush(log_file);
     
    193194        }
    194195        tmp[i] = num;
    195         if (*np == ':' & !force_port)
     196        if (*np == ':' && !force_port)
    196197        {
    197198            int x;
Note: See TracChangeset for help on using the changeset viewer.