Changeset eb1aab2 for lib/protocols.c


Ignore:
Timestamp:
12/20/06 14:37:51 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
544c680
Parents:
25240c2
Message:

Fixed all the warnings about cases that weren't being dealt with by our switch statements - the original code was fine, but the warnings were annoying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    rd4c8a518 reb1aab2  
    321321                case TRACE_TYPE_DUCK:
    322322                        return NULL; /* duck packets have no payload! */
     323                default:
     324                        break;
    323325        }
    324326        fprintf(stderr,"Don't understand link layer type %i in trace_get_payload_from_link()\n",
     
    732734                case TRACE_TYPE_DUCK:
    733735                        return NULL;
     736                default:
     737                        break;
    734738        }
    735739        fprintf(stderr,"Not implemented\n");
     
    766770                        /* No MAC address */
    767771                        return NULL;
     772                default:
     773                        break;
    768774        }
    769775        fprintf(stderr,"Not implemented\n");
Note: See TracChangeset for help on using the changeset viewer.