]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Update print-dccp.c 468/head
authorGisle Vanem <[email protected]>
Fri, 10 Jul 2015 10:39:10 +0000 (12:39 +0200)
committerGisle Vanem <[email protected]>
Fri, 10 Jul 2015 10:39:10 +0000 (12:39 +0200)
Fix warning:
```
print-dccp.c(500): warning C4456: declaration of 'cp' hides previous local declaration
print-dccp.c(277): note: see declaration of 'cp'
```

print-dccp.c

index 09cf72b2bab754fc6d27f97638a32af0fa04e536..a41f68bf5a4bba5c9cac4426997a31bb352a8239 100644 (file)
@@ -497,7 +497,6 @@ void dccp_print(netdissect_options *ndo, const u_char *bp, const u_char *data2,
 
        /* process options */
        if (hlen > fixed_hdrlen){
-               const u_char *cp;
                u_int optlen;
                cp = bp + fixed_hdrlen;
                ND_PRINT((ndo, " <"));