Ignore:
Timestamp:
05/02/06 00:08:58 (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:
e093e5c
Parents:
ddd01fb
Message:

Style fixes, get rid of unnecessary "struct"'s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_legacy.c

    r088533a re6d963c  
    7575};
    7676
    77 static int legacyeth_get_framing_length(const struct libtrace_packet_t *packet UNUSED)
     77static int legacyeth_get_framing_length(const libtrace_packet_t *packet UNUSED)
    7878{
    7979        return sizeof(legacy_ether_t);
    8080}
    8181
    82 static int legacypos_get_framing_length(const struct libtrace_packet_t *packet UNUSED)
     82static int legacypos_get_framing_length(const libtrace_packet_t *packet UNUSED)
    8383{
    8484        return sizeof(legacy_pos_t);
    8585}
    8686
    87 static int legacyatm_get_framing_length(const struct libtrace_packet_t *packet UNUSED)
     87static int legacyatm_get_framing_length(const libtrace_packet_t *packet UNUSED)
    8888{
    8989        return sizeof(legacy_cell_t);
    9090}
    9191
    92 static int erf_init_input(struct libtrace_t *libtrace)
     92static int erf_init_input(libtrace_t *libtrace)
    9393{
    9494        libtrace->format_data = malloc(sizeof(struct legacy_format_data_t));
     
    107107}
    108108
    109 static int erf_fin_input(struct libtrace_t *libtrace) {
     109static int erf_fin_input(libtrace_t *libtrace) {
    110110        libtrace_io_close(INPUT.file);
    111111        free(libtrace->format_data);
     
    113113}
    114114
    115 static int legacy_read_packet(struct libtrace_t *libtrace, struct libtrace_packet_t *packet) {
     115static int legacy_read_packet(libtrace_t *libtrace, libtrace_packet_t *packet) {
    116116        int numbytes;
    117117        void *buffer;
     
    152152}
    153153
    154 static libtrace_linktype_t legacypos_get_link_type(const struct libtrace_packet_t *packet UNUSED) {
     154static libtrace_linktype_t legacypos_get_link_type(const libtrace_packet_t *packet UNUSED) {
    155155        return TRACE_TYPE_POS;
    156156}
    157157
    158 static libtrace_linktype_t legacyatm_get_link_type(const struct libtrace_packet_t *packet UNUSED) {
     158static libtrace_linktype_t legacyatm_get_link_type(const libtrace_packet_t *packet UNUSED) {
    159159        return TRACE_TYPE_ATM;
    160160}
    161161
    162 static libtrace_linktype_t legacyeth_get_link_type(const struct libtrace_packet_t *packet UNUSED) {
     162static libtrace_linktype_t legacyeth_get_link_type(const libtrace_packet_t *packet UNUSED) {
    163163        return TRACE_TYPE_ETH;
    164164}
    165165
    166 static int legacy_get_capture_length(const struct libtrace_packet_t *packet UNUSED) {
     166static int legacy_get_capture_length(const libtrace_packet_t *packet UNUSED) {
    167167        return 64;
    168168}
    169169
    170 static int legacypos_get_wire_length(const struct libtrace_packet_t *packet) {
     170static int legacypos_get_wire_length(const libtrace_packet_t *packet) {
    171171        legacy_pos_t *lpos = (legacy_pos_t *)packet->header;
    172172        return ntohs(lpos->wlen);
    173173}
    174174
    175 static int legacyatm_get_wire_length(const struct libtrace_packet_t *packet UNUSED) {
     175static int legacyatm_get_wire_length(const libtrace_packet_t *packet UNUSED) {
    176176        return 53;
    177177}
    178178
    179 static int legacyeth_get_wire_length(const struct libtrace_packet_t *packet) {
     179static int legacyeth_get_wire_length(const libtrace_packet_t *packet) {
    180180        legacy_ether_t *leth = (legacy_ether_t *)packet->header;
    181181        return ntohs(leth->wlen);
    182182}
    183183
    184 static uint64_t legacy_get_erf_timestamp(const struct libtrace_packet_t *packet)
     184static uint64_t legacy_get_erf_timestamp(const libtrace_packet_t *packet)
    185185{
    186186        legacy_ether_t *legacy = (legacy_ether_t*)packet->header;
Note: See TracChangeset for help on using the changeset viewer.