Changeset fade02b


Ignore:
Timestamp:
07/27/10 17:01:46 (10 years ago)
Author:
Shane Alcock <salcock@…>
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:
7ab7320
Parents:
235a83b
Message:
  • Fix strict-aliasing warning in bitbuffer.c
  • Fixed warnings about unused functions in the lexer code
Location:
libpacketdump
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/bitbuffer.c

    reade363 rfade02b  
    1717    bitbuffer_t ret;
    1818    bitbuffer_t mask;
     19   
     20    char *pktptr = NULL;
    1921
    2022    /* While the buffer is not filled up and there is still
     
    3032        buffer |= (bitbuffer_t)byte << (sizeof(bitbuffer_t)*8-(bits+sizeof(byte)*8));
    3133        /* update the position within the packet */
    32         *packet = ((char*)*packet) + 1;
     34        pktptr = (char *)*packet;
     35        pktptr += 1;
     36        *packet = pktptr;
     37
     38        //*packet = ((char*)*packet) + 1;
    3339
    3440        bits += sizeof(byte)*8;
  • libpacketdump/lexer.l

    rc6fed13 rfade02b  
    33HEXDIGIT    [0-9A-Fa-f]
    44
    5 %option noyywrap
     5%option noyywrap
     6%option nounput
     7%option noinput
    68
    79%{
Note: See TracChangeset for help on using the changeset viewer.