summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-09-23 04:10:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-09-23 04:10:15 +0000
commit5b9dbaee0efeaf013f1e71dca96cd3d56c7f4d85 (patch)
tree3b24dfaa3185c3c5e16980d07b08585154d1acd4
parente5c537e48a40d69509c6f79c53a8eb9d80ea3ef7 (diff)
Add missing includes, breaks and semicolons to appease gcc3; David Krause
deraadt@ OK
-rw-r--r--usr.bin/fgen/fgen.l3
-rw-r--r--usr.bin/last/last.c5
-rw-r--r--usr.bin/lndir/lndir.c3
-rw-r--r--usr.bin/strings/strings.c5
-rw-r--r--usr.sbin/mtree/compare.c5
-rw-r--r--usr.sbin/spppcontrol/spppcontrol.c1
-rw-r--r--usr.sbin/tcpdump/print-ike.c5
7 files changed, 17 insertions, 10 deletions
diff --git a/usr.bin/fgen/fgen.l b/usr.bin/fgen/fgen.l
index f1f3b375a1f..1b93e14eda6 100644
--- a/usr.bin/fgen/fgen.l
+++ b/usr.bin/fgen/fgen.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: fgen.l,v 1.5 2002/07/12 00:26:24 deraadt Exp $ */
+/* $OpenBSD: fgen.l,v 1.6 2002/09/23 04:10:14 millert Exp $ */
/* $NetBSD: fgen.l,v 1.12 2001/06/13 10:46:05 wiz Exp $ */
/* FLEX input for FORTH input file scanner */
/*
@@ -1955,6 +1955,7 @@ tokenize(input)
}
break;
default:
+ break;
}
}
return;
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index 290450739d3..125618b8512 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: last.c,v 1.19 2002/02/16 21:27:47 millert Exp $ */
+/* $OpenBSD: last.c,v 1.20 2002/09/23 04:10:14 millert Exp $ */
/* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)last.c 8.2 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: last.c,v 1.19 2002/02/16 21:27:47 millert Exp $";
+static char rcsid[] = "$OpenBSD: last.c,v 1.20 2002/09/23 04:10:14 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -223,6 +223,7 @@ checkargs()
"Warning: Ignoring username[s]\n");
break;
default:
+ break;
/* PRINT NOTHING */
}
}
diff --git a/usr.bin/lndir/lndir.c b/usr.bin/lndir/lndir.c
index 10218330093..b5f65b8cc28 100644
--- a/usr.bin/lndir/lndir.c
+++ b/usr.bin/lndir/lndir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lndir.c,v 1.10 2002/06/17 07:06:39 deraadt Exp $ */
+/* $OpenBSD: lndir.c,v 1.11 2002/09/23 04:10:14 millert Exp $ */
/* $XConsortium: lndir.c /main/15 1995/08/30 10:56:18 gildea $ */
/*
@@ -296,6 +296,7 @@ dodir(char *fn, struct stat *fs, struct stat *ts, int rel)
warn("%s", dp->d_name);
}
next:
+ ;
}
closedir(df);
diff --git a/usr.bin/strings/strings.c b/usr.bin/strings/strings.c
index 52812d9cd33..5ab6a58f6ff 100644
--- a/usr.bin/strings/strings.c
+++ b/usr.bin/strings/strings.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strings.c,v 1.7 2002/02/16 21:27:53 millert Exp $ */
+/* $OpenBSD: strings.c,v 1.8 2002/09/23 04:10:14 millert Exp $ */
/* $NetBSD: strings.c,v 1.7 1995/02/15 15:49:19 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)strings.c 8.2 (Berkeley) 1/28/94";
#endif
-static char rcsid[] = "$OpenBSD: strings.c,v 1.7 2002/02/16 21:27:53 millert Exp $";
+static char rcsid[] = "$OpenBSD: strings.c,v 1.8 2002/09/23 04:10:14 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -244,6 +244,7 @@ start:
putchar((char)ch);
putchar('\n');
out:
+ ;
}
cnt = 0;
}
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c
index d18daf90b62..a3500e7d1d8 100644
--- a/usr.sbin/mtree/compare.c
+++ b/usr.sbin/mtree/compare.c
@@ -1,5 +1,5 @@
/* $NetBSD: compare.c,v 1.11 1996/09/05 09:56:48 mycroft Exp $ */
-/* $OpenBSD: compare.c,v 1.15 2002/03/14 16:44:25 mpech Exp $ */
+/* $OpenBSD: compare.c,v 1.16 2002/09/23 04:10:14 millert Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
#if 0
static const char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: compare.c,v 1.15 2002/03/14 16:44:25 mpech Exp $";
+static const char rcsid[] = "$OpenBSD: compare.c,v 1.16 2002/09/23 04:10:14 millert Exp $";
#endif
#endif /* not lint */
@@ -185,6 +185,7 @@ typeerr: LABEL;
(void)printf(")\n");
tab = "\t";
skip:
+ ;
}
if (s->flags & F_NLINK && s->type != F_DIR &&
s->st_nlink != p->fts_statp->st_nlink) {
diff --git a/usr.sbin/spppcontrol/spppcontrol.c b/usr.sbin/spppcontrol/spppcontrol.c
index 977b501682d..6b09732bfba 100644
--- a/usr.sbin/spppcontrol/spppcontrol.c
+++ b/usr.sbin/spppcontrol/spppcontrol.c
@@ -38,6 +38,7 @@ static const char rcsid[] =
#include <err.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
#include <unistd.h>
diff --git a/usr.sbin/tcpdump/print-ike.c b/usr.sbin/tcpdump/print-ike.c
index 215772d155b..29693478ea1 100644
--- a/usr.sbin/tcpdump/print-ike.c
+++ b/usr.sbin/tcpdump/print-ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ike.c,v 1.14 2002/07/11 16:14:52 stevesk Exp $ */
+/* $OpenBSD: print-ike.c,v 1.15 2002/09/23 04:10:14 millert Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -29,7 +29,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ike.c,v 1.14 2002/07/11 16:14:52 stevesk Exp $ (XXX)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ike.c,v 1.15 2002/09/23 04:10:14 millert Exp $ (XXX)";
#endif
#include <sys/param.h>
@@ -687,6 +687,7 @@ ike_pl_print (u_char type, u_char *buf, u_char doi)
break;
default:
+ break;
}
ike_tab_level--;