]> The Tcpdump Group git mirrors - tcpdump/commitdiff
print-mobile: mobile_print(): variable 'cp' is assigned a value that is never used 359/head
authorfxlb <[email protected]>
Wed, 5 Feb 2014 21:08:58 +0000 (22:08 +0100)
committerfxlb <[email protected]>
Wed, 5 Feb 2014 21:08:58 +0000 (22:08 +0100)
print-mobile.c

index 530f26efeb41a07ef182e314306eb5ddb50e519f..e8e0acce1f65c1e01d5a83db71b8a40c22c54d88 100644 (file)
@@ -65,7 +65,6 @@ struct mobile_ip {
 void
 mobile_print(const u_char *bp, u_int length)
 {
-       const u_char *cp = bp +8 ;
        const struct mobile_ip *mob;
        struct cksum_vec vec[1];
        u_short proto,crc;
@@ -83,7 +82,6 @@ mobile_print(const u_char *bp, u_int length)
        crc =  EXTRACT_16BITS(&mob->hcheck);
        if (proto & OSRC_PRES) {
                osp=1;
-               cp +=4 ;
        }
 
        if (osp)  {