Changeset 1324

Show
Ignore:
Timestamp:
25/02/08 10:35:54 (11 months ago)
Author:
yww4
Message:

expend line 123 and 139, make it compile with linux

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/format_tsh.c

    r1322 r1324  
    121121        } 
    122122 
    123         (char*)buffer2 += numbytes; 
     123        buffer2 = (char*)buffer2 + numbytes; 
    124124        packet->payload = buffer2; 
    125125 
     
    137137         * for them, and put the transport header where it "should" be 
    138138         */ 
    139         (char*)buffer2 += ((libtrace_ip_t*)buffer2)->ip_hl*4; 
     139        buffer2 = (char*)buffer2 + ((libtrace_ip_t*)buffer2)->ip_hl*4; 
    140140 
    141141        /* Read the transport header */