]> The Tcpdump Group git mirrors - tcpdump/commitdiff
esp: mark unreached code as such.
authorGuy Harris <[email protected]>
Sun, 19 May 2024 10:47:43 +0000 (03:47 -0700)
committerGuy Harris <[email protected]>
Sun, 19 May 2024 19:25:59 +0000 (12:25 -0700)
Some compilers might not understand the declaration of the ndo_error
member of an netdissect_options as pointing to a function that never
returns; add a /* NOTREACHED */ comment in case they recognize that as a
hint.

print-esp.c

index e8c1be4bb4acce264dc4a4f79224e69c788de636..e93e494e9843e6828097ccd9321a9ffd13851a15 100644 (file)
@@ -368,6 +368,7 @@ static u_int hexdigit(netdissect_options *ndo, char hex)
        else {
                (*ndo->ndo_error)(ndo, S_ERR_ND_ESP_SECRET,
                                  "invalid hex digit %c in espsecret\n", hex);
+               /* NOTREACHED */
        }
 }