Changeset 67a14d4 for lib/linktypes.c


Ignore:
Timestamp:
04/08/06 13:39:32 (15 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:
aa67e26
Parents:
68155f1
Message:

Move more types to the libtrace standard (typedef'd libtrace_*_t)
Add casts where appropriate
Remove default:'s from enum'd switch()'s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/linktypes.c

    r0220eb1 r67a14d4  
    2929#endif
    3030#endif
    31                 default:
    32                         return -1;
    3331        }
     32        return -1;
    3433}
    3534
     
    4948#endif
    5049#endif
    51                 default:
    52                         return -1;
    5350        }
     51        return -1;
    5452}
    5553
     
    7068        switch (erf) {
    7169                case TYPE_LEGACY:       return TRACE_TYPE_LEGACY;
     70                case TYPE_HDLC_POS:     return TRACE_TYPE_HDLC_POS;
    7271                case TYPE_ETH:          return TRACE_TYPE_ETH;
    7372                case TYPE_ATM:          return TRACE_TYPE_ATM;
    74                 default:
    75                         return -1;
     73                case TYPE_AAL5:         return TRACE_TYPE_AAL5;
    7674        }
     75        return -1;
    7776}
    7877
     
    8382                case TRACE_TYPE_ETH:    return TYPE_ETH;
    8483                case TRACE_TYPE_ATM:    return TYPE_ATM;
    85                 default:
    86                                         return -1;
    8784        }
     85        return -1;
    8886}
Note: See TracChangeset for help on using the changeset viewer.