Changeset e6d963c for lib/format_rt.c


Ignore:
Timestamp:
05/02/06 00:08:58 (16 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_rt.c

    rc4a4d3d re6d963c  
    8585
    8686       
    87         struct libtrace_t *dummy_erf;
    88         struct libtrace_t *dummy_pcap;
    89         struct libtrace_t *dummy_wag;
     87        libtrace_t *dummy_erf;
     88        libtrace_t *dummy_pcap;
     89        libtrace_t *dummy_wag;
    9090};
    9191
    9292static struct libtrace_format_t rt;
    9393
    94 static int rt_connect(struct libtrace_t *libtrace) {
     94static int rt_connect(libtrace_t *libtrace) {
    9595        struct hostent *he;
    9696        struct sockaddr_in remote;
     
    187187
    188188
    189 static int rt_init_input(struct libtrace_t *libtrace) {
     189static int rt_init_input(libtrace_t *libtrace) {
    190190        char *scan;
    191191        char *uridata = libtrace->uridata;
     
    222222}
    223223       
    224 static int rt_start_input(struct libtrace_t *libtrace) {
     224static int rt_start_input(libtrace_t *libtrace) {
    225225        rt_header_t start_msg;
    226226
     
    239239}
    240240
    241 static int rt_fin_input(struct libtrace_t *libtrace) {
     241static int rt_fin_input(libtrace_t *libtrace) {
    242242        rt_header_t close_msg;
    243243
     
    267267#define RT_BUF_SIZE 4000
    268268
    269 static int rt_read(struct libtrace_t *libtrace, void **buffer, size_t len, int block) {
     269static int rt_read(libtrace_t *libtrace, void **buffer, size_t len, int block) {
    270270        int numbytes;
    271271        rt_header_t *test_hdr;
     
    386386}               
    387387
    388 static void rt_set_payload(struct libtrace_packet_t *packet) {
     388static void rt_set_payload(libtrace_packet_t *packet) {
    389389        dag_record_t *erfptr;
    390390       
     
    405405}
    406406
    407 static int rt_send_ack(struct libtrace_t *libtrace,
     407static int rt_send_ack(libtrace_t *libtrace,
    408408                uint32_t seqno)  {
    409409       
     
    537537
    538538
    539 static int rt_get_capture_length(const struct libtrace_packet_t *packet) {
     539static int rt_get_capture_length(const libtrace_packet_t *packet) {
    540540        switch (packet->type) {
    541541                case RT_DUCK:
     
    580580}
    581581
    582 struct libtrace_eventobj_t trace_event_rt(struct libtrace_t *trace, struct libtrace_packet_t *packet) {
    583         struct libtrace_eventobj_t event = {0,0,0.0,0};
     582libtrace_eventobj_t trace_event_rt(libtrace_t *trace, libtrace_packet_t *packet) {
     583        libtrace_eventobj_t event = {0,0,0.0,0};
    584584        libtrace_err_t read_err;
    585585
Note: See TracChangeset for help on using the changeset viewer.