Changeset e6d963c for lib/format_pcap.c


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_pcap.c

    r9d7d9e9 re6d963c  
    8686};
    8787
    88 static int pcap_init_input(struct libtrace_t *libtrace) {
     88static int pcap_init_input(libtrace_t *libtrace) {
    8989        libtrace->format_data = malloc(sizeof(struct pcap_format_data_t));
    9090
     
    9797}
    9898
    99 static int pcap_start_input(struct libtrace_t *libtrace) {
     99static int pcap_start_input(libtrace_t *libtrace) {
    100100        char errbuf[PCAP_ERRBUF_SIZE];
    101101
     
    173173}
    174174
    175 static int pcapint_init_input(struct libtrace_t *libtrace) {
     175static int pcapint_init_input(libtrace_t *libtrace) {
    176176        libtrace->format_data = malloc(sizeof(struct pcap_format_data_t));
    177177        DATA(libtrace)->filter = NULL;
     
    261261
    262262static void trace_pcap_handler(u_char *user, const struct pcap_pkthdr *pcaphdr, const u_char *pcappkt) {
    263         struct libtrace_packet_t *packet = (struct libtrace_packet_t *)user;   
     263        libtrace_packet_t *packet = (libtrace_packet_t *)user; 
    264264        /*
    265265        // pcap provides us with the right bits, in it's own buffers.
     
    284284
    285285/* TODO: use pcap_next_ex() if available */
    286 static int pcap_read_packet(struct libtrace_t *libtrace, struct libtrace_packet_t *packet) {
     286static int pcap_read_packet(libtrace_t *libtrace, libtrace_packet_t *packet) {
    287287        int pcapbytes = 0;
    288288        int linktype;
     
    435435
    436436
    437 static struct timeval pcap_get_timeval(const struct libtrace_packet_t *packet) {
     437static struct timeval pcap_get_timeval(const libtrace_packet_t *packet) {
    438438        struct pcap_pkthdr *pcapptr = (struct pcap_pkthdr *)packet->header;
    439439        struct timeval ts;
Note: See TracChangeset for help on using the changeset viewer.