Ignore:
Timestamp:
10/15/09 18:46:08 (12 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
34cab5b
Parents:
189f5c6
Message:

Tidy up thousands of little warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/eth_2054.c

    r11a7f9c reade363  
    2020 * attempt to decode.
    2121 */
    22 static char *format_hrd(struct arphdr *arp, char *hrd) {
     22static char *format_hrd(const struct arphdr *arp, const char *hrd) {
    2323        static char buffer[1024] = {0,};
    2424        int i;
     
    3131        switch(ntohs(arp->ar_hrd)) {
    3232                case ARPHRD_ETHER:
    33                         trace_ether_ntoa(hrd, buffer);
     33                        trace_ether_ntoa((const unsigned char *)hrd, buffer);
    3434                        break;
    3535                default:
     
    5050 * attempt to decode.
    5151 */
    52 static char *format_pro(struct arphdr *arp, char *pro) {
     52static char *format_pro(const struct arphdr *arp, const char *pro) {
    5353        static char buffer[1024] = {0,};
    5454        int i;
     
    7777}
    7878       
    79 void decode(int link_type,const char *packet,unsigned len)
     79void decode(int link_type UNUSED,const char *packet,unsigned len)
    8080{
    8181        struct arphdr *arp = (struct arphdr*)packet;
    82         char *source_hrd = NULL;
    83         char *source_pro = NULL;
    84         char *dest_hrd = NULL;
    85         char *dest_pro = NULL;
     82        const char *source_hrd = NULL;
     83        const char *source_pro = NULL;
     84        const char *dest_hrd = NULL;
     85        const char *dest_pro = NULL;
    8686
    8787        if (len < sizeof(struct arphdr)) {
Note: See TracChangeset for help on using the changeset viewer.