Ignore:
Timestamp:
08/25/06 15:47:43 (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:
e283596
Parents:
e373992
Message:

Fixed lots of warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtraceio-zlib.c

    r46dd1e3 r85a79b0  
    55
    66struct libtrace_io_t {
    7         gzFile *file;
     7        gzFile file;
    88};
    99
     
    3535libtrace_io_t *libtrace_io_fdopen(int fd, const char *mode)
    3636{
    37         libtrace_io_t *io = malloc(sizeof(libtrace_io_t));
     37        libtrace_io_t *io = (libtrace_io_t*)malloc(sizeof(libtrace_io_t));
    3838        io->file = gzdopen(fd,mode);
    3939        return io;
     
    4242libtrace_io_t *libtrace_io_open(const char *path, const char *mode)
    4343{
    44         libtrace_io_t *io = malloc(sizeof(libtrace_io_t));
     44        libtrace_io_t *io = (libtrace_io_t*)malloc(sizeof(libtrace_io_t));
    4545        io->file = gzopen(path,mode);
    4646        return io;
Note: See TracChangeset for help on using the changeset viewer.