Changeset 1427


Ignore:
Timestamp:
21/08/06 12:35:39 (13 years ago)
Author:
spascoe
Message:

Removing debug code.

Location:
TI05-delivery/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/readmessage.c

    r1426 r1427  
    116116        } 
    117117    } 
    118  
    119     // DEBUG 
    120     // Do a checksum of the message and log it. 
    121     int i, c; 
    122     c = 0; 
    123     for (i = 0; i < msglen; i++) { 
    124       c += (int)buffer[i]; 
    125     } 
    126     PRINTMESSAGE(stdout, CASE_NORMAL, 0, timestamp, "readmessage: %d, chksum: %d\n", msglen, c); 
    127  
    128118    return(0) ; 
    129  
    130119} 
    131120int discardmessage(int sock,int msglen,int to,int fromchild)  
     
    138127    char    buffer[256] ; 
    139128    char    ent[40] ; 
    140  
    141     // DEBUG 
    142     // Do a checksum of the message and log it. 
    143     PRINTMESSAGE(stdout, CASE_NORMAL, 0, timestamp, "discardmessage: %d\n", msglen); 
    144  
    145129 
    146130    if ( fromchild == 1 ) { 
  • TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/writemessage.c

    r1426 r1427  
    7272    int     nbsent ; 
    7373 
    74     // DEBUG 
    75     // Do a checksum of the message and log it. 
    76     int i, c; 
    77     c = 0; 
    78     for (i = 0; i < msglen; i++) { 
    79       c += (int)buffer[i]; 
    80     } 
    81     PRINTMESSAGE(stdout, CASE_NORMAL, 0, timestamp, "writemessage: %d, chksum: %d\n", msglen, c); 
    82  
    83  
    8474    if ( fromchild == 1 ) { 
    8575        sprintf(ent,"Child %06d : ",getpid()) ; 
  • TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/bbftpd_message.c

    r1426 r1427  
    115115        } 
    116116    } 
    117  
    118     // DEBUG 
    119     // Do a checksum of the message and log it. 
    120     int i, c; 
    121     c = 0; 
    122     for (i = 0; i < msglen; i++) { 
    123       c += (int)buffer[i]; 
    124     } 
    125     bbftpd_log(LOG_DEBUG, "readmessage: %d, chksum: %d", msglen, c); 
    126  
    127117    return(0) ; 
    128  
    129  
    130118} 
    131119 
     
    139127    char buffer[256] ; 
    140128     
    141     // DEBUG 
    142     bbftpd_log(LOG_DEBUG, "discardmessage: %d", msglen); 
    143  
    144  
    145129    /* 
    146130    ** We are going to read buflen by buflen till the message  
     
    189173 
    190174    nbsent = 0 ; 
    191  
    192     // DEBUG 
    193     // Do a checksum of the message and log it. 
    194     int i, c; 
    195     c = 0; 
    196     for (i = 0; i < msglen; i++) { 
    197       c += (int)buffer[i]; 
    198     } 
    199     bbftpd_log(LOG_DEBUG, "writemessage: %d, chksum: %d", msglen, c); 
    200  
    201  
    202175/* 
    203176** start the writing loop 
Note: See TracChangeset for help on using the changeset viewer.