Skip to content

Commit 074d10a

Browse files
committed
esp: mark unreached code as such.
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.
1 parent 47edb26 commit 074d10a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

print-esp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ static u_int hexdigit(netdissect_options *ndo, char hex)
368368
else {
369369
(*ndo->ndo_error)(ndo, S_ERR_ND_ESP_SECRET,
370370
"invalid hex digit %c in espsecret\n", hex);
371+
/* NOTREACHED */
371372
}
372373
}
373374

0 commit comments

Comments
 (0)