Changeset eb1aab2 for lib/linktypes.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/linktypes.c

    r7f85769 reb1aab2  
    4242                case TRACE_DLT_IEEE802_11_RADIO: return TRACE_TYPE_80211_RADIO;
    4343                case TRACE_DLT_ATM_RFC1483: return TRACE_TYPE_LLCSNAP;
    44                                          
    4544        }
    4645        return ~0U;
     
    7170                        return ~0U;
    7271                case TRACE_TYPE_LLCSNAP: return TRACE_DLT_ATM_RFC1483;
     72                default: break;
    7373        }
    7474        return ~0U;
     
    106106                case TRACE_TYPE_AAL5:   return TYPE_AAL5;
    107107                case TRACE_TYPE_LLCSNAP: return -1;
     108                default:                break;
    108109        }
    109110        return -1;
     
    124125                case TRACE_TYPE_80211: return ARPHRD_IEEE80211;
    125126                case TRACE_TYPE_80211_RADIO: return ARPHRD_80211_RADIOTAP;
     127                default: break;
    126128        }
    127129        return ~0U;
Note: See TracChangeset for help on using the changeset viewer.