diff options
author | 1999-09-16 17:59:50 +0000 | |
---|---|---|
committer | 1999-09-16 17:59:50 +0000 | |
commit | 01a9d92d723d853f43dddc42fb4108db8cc7e480 (patch) | |
tree | cc4ab229ded067e88f055e4db5a0677299726b2a /usr.sbin/tcpdump/print-tcp.c | |
parent | remove unused variables (diff) | |
download | wireguard-openbsd-01a9d92d723d853f43dddc42fb4108db8cc7e480.tar.xz wireguard-openbsd-01a9d92d723d853f43dddc42fb4108db8cc7e480.zip |
add braces to avoid ambiguous else
Diffstat (limited to 'usr.sbin/tcpdump/print-tcp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-tcp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-tcp.c b/usr.sbin/tcpdump/print-tcp.c index a1929ad414f..b7f474090aa 100644 --- a/usr.sbin/tcpdump/print-tcp.c +++ b/usr.sbin/tcpdump/print-tcp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 + * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-tcp.c,v 1.7 1999/07/28 20:41:36 jakob Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-tcp.c,v 1.8 1999/09/16 17:59:50 brad Exp $ (LBL)"; #endif #include <sys/param.h> @@ -298,7 +298,7 @@ tcp_print(register const u_char *bp, register u_int length, LENCHECK (i + TCPOLEN_SACK); s = EXTRACT_32BITS(cp + i); e = EXTRACT_32BITS(cp + i + 4); - if (!Sflag) + if (!Sflag) { if (rev) { s -= th->seq; e -= th->seq; @@ -307,6 +307,7 @@ tcp_print(register const u_char *bp, register u_int length, e -= th->ack; } (void) printf("{%u:%u} ", s, e); + } } break; } |