diff options
author | Brad Smith <brad@cvs.openbsd.org> | 1999-09-16 17:59:51 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 1999-09-16 17:59:51 +0000 |
commit | 7ea67f815ab40ee560deea73814994f9e71a8cab (patch) | |
tree | 9f5d367402a84965b1be182299edcc6cc9753a7c /usr.sbin/tcpdump | |
parent | c541efe26076fa235758abc21c5fdeaba7d0924d (diff) |
add braces to avoid ambiguous else
Diffstat (limited to 'usr.sbin/tcpdump')
-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 37a9dbbd959..7d5256756f4 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: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-tcp.c,v 1.7 1999/07/28 20:41:36 jakob Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/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; } |