]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Remove parenthesis following immediately a #if
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 1 Sep 2016 09:39:39 +0000 (11:39 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 1 Sep 2016 12:16:52 +0000 (14:16 +0200)
This avoid Coccinelle warning "Unable to parse #if condition"

print-sctp.c

index 70738e66185be5283808c58a520675c9b9343f4b..f625dce67b03df12bb578dd600ea3cf918d5d825 100644 (file)
@@ -693,7 +693,7 @@ void sctp_print(netdissect_options *ndo,
            sctpPacketLengthRemaining -= sizeof(*init);
            chunkLengthRemaining -= sizeof(*init);
 
-#if(0) /* ALC you can add code for optional params here */
+#if 0 /* ALC you can add code for optional params here */
            if( chunkLengthRemaining != 0 )
              ND_PRINT((ndo, " @@@@@ UNFINISHED @@@@@@%s\n",
                     "Optional params present, but not printed."));
@@ -721,7 +721,7 @@ void sctp_print(netdissect_options *ndo,
             sctpPacketLengthRemaining -= sizeof(*init);
             chunkLengthRemaining -= sizeof(*init);
 
-#if(0) /* ALC you can add code for optional params here */
+#if 0 /* ALC you can add code for optional params here */
            if( chunkLengthRemaining != 0 )
              ND_PRINT((ndo, " @@@@@ UNFINISHED @@@@@@%s\n",
                     "Optional params present, but not printed."));