summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2006-04-21 23:09:35 +0000
committerChad Loder <cloder@cvs.openbsd.org>2006-04-21 23:09:35 +0000
commit66a3e6581c21c7bb0f662336083e44af48f0505b (patch)
treec2573533e80bd37e8eff8eff54725635ab704ac2
parent6fa6aef2e52665b8b0a00f92fefea440bc96eb11 (diff)
Add comments to please lint. No code changes. OK deraadt
-rw-r--r--usr.sbin/tcpdump/print-ospf.c8
-rw-r--r--usr.sbin/tcpdump/print-ospf6.c6
-rw-r--r--usr.sbin/tcpdump/privsep.c5
-rw-r--r--usr.sbin/tcpdump/tcpdump.c6
4 files changed, 15 insertions, 10 deletions
diff --git a/usr.sbin/tcpdump/print-ospf.c b/usr.sbin/tcpdump/print-ospf.c
index 351a895ee19..a68f11107db 100644
--- a/usr.sbin/tcpdump/print-ospf.c
+++ b/usr.sbin/tcpdump/print-ospf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ospf.c,v 1.10 2005/12/17 17:24:30 stevesk Exp $ */
+/* $OpenBSD: print-ospf.c,v 1.11 2006/04/21 23:09:34 cloder Exp $ */
/*
* Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
@@ -25,7 +25,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ospf.c,v 1.10 2005/12/17 17:24:30 stevesk Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ospf.c,v 1.11 2006/04/21 23:09:34 cloder Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -223,7 +223,7 @@ ospf_print_lsa(register const struct lsa *lsap)
case RLA_TYPE_VIRTUAL:
printf(" virt");
- /* Fall through */
+ /* FALLTHROUGH */
case RLA_TYPE_ROUTER:
printf(" nbrid %s if %s",
@@ -281,7 +281,7 @@ ospf_print_lsa(register const struct lsa *lsap)
TCHECK(lsap->lsa_un.un_nla.nla_mask);
printf(" mask %s",
ipaddr_string(&lsap->lsa_un.un_sla.sla_mask));
- /* Fall through */
+ /* FALLTHROUGH */
case LS_TYPE_SUM_ABR:
TCHECK(lsap->lsa_un.un_sla.sla_tosmetric);
diff --git a/usr.sbin/tcpdump/print-ospf6.c b/usr.sbin/tcpdump/print-ospf6.c
index b2db6fc1981..719c8b2299a 100644
--- a/usr.sbin/tcpdump/print-ospf6.c
+++ b/usr.sbin/tcpdump/print-ospf6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ospf6.c,v 1.2 2000/05/05 12:32:09 jakob Exp $ */
+/* $OpenBSD: print-ospf6.c,v 1.3 2006/04/21 23:09:34 cloder Exp $ */
/*
@@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ospf6.c,v 1.2 2000/05/05 12:32:09 jakob Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ospf6.c,v 1.3 2006/04/21 23:09:34 cloder Exp $ (LBL)";
#endif
#ifdef INET6
@@ -294,7 +294,7 @@ ospf6_print_lsa(register const struct lsa *lsap)
case RLA_TYPE_VIRTUAL:
printf(" virt");
- /* Fall through */
+ /* FALLTHROUGH */
case RLA_TYPE_ROUTER:
printf(" nbrid %s nbrif %s if %s",
diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c
index 3eca83e5e11..801912de89e 100644
--- a/usr.sbin/tcpdump/privsep.c
+++ b/usr.sbin/tcpdump/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.22 2005/09/23 15:42:51 otto Exp $ */
+/* $OpenBSD: privsep.c,v 1.23 2006/04/21 23:09:34 cloder Exp $ */
/*
* Copyright (c) 2003 Can Erkin Acar
@@ -755,6 +755,7 @@ may_read(int fd, void *buf, size_t n)
case -1:
if (errno == EINTR || errno == EAGAIN)
continue;
+ /* FALLTHROUGH */
case 0:
return (1);
default:
@@ -778,6 +779,7 @@ must_read(int fd, void *buf, size_t n)
case -1:
if (errno == EINTR || errno == EAGAIN)
continue;
+ /* FALLTHROUGH */
case 0:
_exit(0);
default:
@@ -800,6 +802,7 @@ must_write(int fd, const void *buf, size_t n)
case -1:
if (errno == EINTR || errno == EAGAIN)
continue;
+ /* FALLTHROUGH */
case 0:
_exit(0);
default:
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c
index 2d8c8c4e7ea..7fc30558883 100644
--- a/usr.sbin/tcpdump/tcpdump.c
+++ b/usr.sbin/tcpdump/tcpdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdump.c,v 1.51 2006/04/17 23:49:59 deraadt Exp $ */
+/* $OpenBSD: tcpdump.c,v 1.52 2006/04/21 23:09:34 cloder Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -26,7 +26,7 @@ static const char copyright[] =
"@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997\n\
The Regents of the University of California. All rights reserved.\n";
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.51 2006/04/17 23:49:59 deraadt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.52 2006/04/21 23:09:34 cloder Exp $ (LBL)";
#endif
/*
@@ -500,6 +500,7 @@ main(int argc, char **argv)
}
/* make a clean exit on interrupts */
+/* ARGSUSED */
RETSIGTYPE
cleanup(int signo)
{
@@ -529,6 +530,7 @@ cleanup(int signo)
_exit(0);
}
+/* ARGSUSED */
RETSIGTYPE
gotchld(int signo)
{