diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-11-10 13:20:47 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-11-10 13:20:47 -0800 |
commit | 69b2b73b57863b270ca9479c136b158242dd08df (patch) | |
tree | 83bb07ffa5ce6f0da96be8710e211631674e9175 /rpcapd/rpcapd.c | |
parent | 7d1fdf89b6aa34e999b21a59d3a0589496fef184 (diff) | |
download | libpcap-69b2b73b57863b270ca9479c136b158242dd08df.tar.gz |
Squelch warnings about unreachable code.
C copmilers *really* shouldn't complain about unreachable break
statements, given that they're used as case separators. *Maybe*
complain if they're immediately preceded by a return or break statement,
but not if they're preceded by calls to functions that don't return.
While we're at it, use the same style for all NOTREACHED comments.
Diffstat (limited to 'rpcapd/rpcapd.c')
-rw-r--r-- | rpcapd/rpcapd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpcapd/rpcapd.c b/rpcapd/rpcapd.c index 6ad922ec..9e46a2de 100644 --- a/rpcapd/rpcapd.c +++ b/rpcapd/rpcapd.c @@ -269,10 +269,10 @@ int main(int argc, char *argv[]) case 'h': printusage(); exit(0); - break; + /*NOTREACHED*/ default: exit(1); - break; + /*NOTREACHED*/ } } |