Ignore:
Timestamp:
01/15/19 16:47:20 (22 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
e9fe6ac
Parents:
edd0448
Message:

Fix clashes between global and local variable names in tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracesplit/tracesplit.c

    r4c5bbfc rbab946c  
    5252uint64_t filescreated = 0;
    5353uint16_t snaplen = 0;
    54 int jump=0;
     54int jumpopt=0;
    5555int verbose=0;
    5656int compress_level=-1;
     
    324324
    325325        /* Support "jump"ping to the nth IP header. */
    326         if (jump) {
     326        if (jumpopt) {
    327327            /* Skip headers */
    328             struct libtrace_packet_t *newpacket = perform_jump(*packet, jump);
     328            struct libtrace_packet_t *newpacket = perform_jump(*packet, jumpopt);
    329329            if (newpacket) {
    330330                /* If an IP header was found on the nth layer down
     
    404404                        case 'i': interval=atoi(optarg);
    405405                                  break;
    406                         case 'j': jump=atoi(optarg);
     406                        case 'j': jumpopt=atoi(optarg);
    407407                                  break;
    408408                        case 'm': maxfiles=atoi(optarg);
Note: See TracChangeset for help on using the changeset viewer.