Changeset 1052


Ignore:
Timestamp:
10/13/06 11:47:19 (7 years ago)
Author:
perry
Message:

Squash some more warnings. (signed vs unsigned, unused parameters)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_rt.c

    r1048 r1052  
    8282        char *pkt_buffer; 
    8383        char *buf_current; 
    84         int buf_filled; 
     84        size_t buf_filled; 
    8585        rt_header_t rt_hdr; 
    8686         
     
    260260        /* Send a close message to the server */ 
    261261        if (send(RT_INFO->input_fd, (void*)&close_msg, sizeof(rt_header_t) +  
    262                                 close_msg.length, 0) != sizeof(rt_header_t) 
     262                                close_msg.length, 0) != (int)sizeof(rt_header_t) 
    263263                                + close_msg.length) { 
    264264                printf("Failed to send close message to server\n"); 
     
    362362        RT_INFO->buf_current += len; 
    363363        RT_INFO->buf_filled -= len; 
    364         assert(RT_INFO->buf_filled >= 0); 
    365364        return len; 
    366365} 
     
    620619} 
    621620 
    622 static int rt_get_wire_length(const libtrace_packet_t *packet) { 
     621static int rt_get_wire_length(UNUSED const libtrace_packet_t *packet) { 
    623622        return 0; 
    624623} 
    625624                         
    626 static int rt_get_framing_length(const libtrace_packet_t *packet) { 
     625static int rt_get_framing_length(UNUSED const libtrace_packet_t *packet) { 
    627626        return 0; 
    628627} 
Note: See TracChangeset for help on using the changeset viewer.