Changeset 4746c71 for lib/format_rt.c


Ignore:
Timestamp:
12/31/06 17:49:49 (14 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:
8d504c1
Parents:
e1868fb
Message:

Lots of tiny little warning fixes. Mostly related to casts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    r4bd8a5b r4746c71  
    5353#define RT_INFO ((struct rt_format_data_t*)libtrace->format_data)
    5454
    55 static char *rt_deny_reason(enum rt_conn_denied_t reason)
     55static const char *rt_deny_reason(enum rt_conn_denied_t reason)
    5656{
    57         char *string = 0;
     57        const char *string = 0;
    5858
    5959        switch(reason) {
     
    294294       
    295295        if (!RT_INFO->pkt_buffer) {
    296                 RT_INFO->pkt_buffer = malloc((size_t)RT_BUF_SIZE);
     296                RT_INFO->pkt_buffer = (char*)malloc((size_t)RT_BUF_SIZE);
    297297                RT_INFO->buf_current = RT_INFO->pkt_buffer;
    298298                RT_INFO->buf_filled = 0;
     
    448448       
    449449        if (!ack_buffer) {
    450                 ack_buffer = malloc(sizeof(rt_header_t) + sizeof(rt_ack_t));
     450                ack_buffer = (char*)malloc(sizeof(rt_header_t)
     451                                                        + sizeof(rt_ack_t));
    451452        }
    452453       
Note: See TracChangeset for help on using the changeset viewer.