Changeset ab4cb04 for lib/format_rt.c


Ignore:
Timestamp:
02/27/06 14:31:09 (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:
d5879cc
Parents:
afd0b73
Message:

Cleanup struct libtrace_Format_data_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rafd0b73 rab4cb04  
    6666#include <stdlib.h>
    6767
    68 #define RT_INFO libtrace->format_data
     68#define RT_INFO ((struct rt_format_data_t*)libtrace->format_data)
    6969
    7070int reliability = 0;
     
    9191
    9292
    93 struct libtrace_format_data_t {
     93struct rt_format_data_t {
    9494        char *hostname;
    9595        int port;
     
    175175        char *scan;
    176176        char *uridata = libtrace->uridata;
    177         libtrace->format_data = (struct libtrace_format_data_t *)
    178                 malloc(sizeof(struct libtrace_format_data_t));
     177        libtrace->format_data = malloc(sizeof(struct rt_format_data_t));
    179178
    180179        RT_INFO->dummy_erf = NULL;
     
    486485
    487486static int rt_get_fd(const struct libtrace_t *trace) {
    488         return trace->format_data->input_fd;
     487        return ((struct rt_format_data_t *)trace->format_data)->input_fd;
    489488}
    490489
Note: See TracChangeset for help on using the changeset viewer.