[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
src patch for missing includes, breaks, semis with gcc3
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: src patch for missing includes, breaks, semis with gcc3
- From: David Krause <openbsd_(_at_)_davidkrause_(_dot_)_com>
- Date: Sun, 22 Sep 2002 16:07:21 -0500
These are the remaining ones. Some of the previous ones were already
fixed in the -pedantic audit.
David
Index: libexec/smtpd/src/accumlog.c
===================================================================
RCS file: /home/cvs/src/libexec/smtpd/src/accumlog.c,v
retrieving revision 1.3
diff -u -p -r1.3 accumlog.c
--- libexec/smtpd/src/accumlog.c 19 Feb 2002 19:39:38 -0000 1.3
+++ libexec/smtpd/src/accumlog.c 8 Jun 2002 04:31:30 -0000
@@ -75,6 +75,7 @@
#include <stdio.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <syslog.h>
#include <sys/types.h>
#include <string.h>
Index: usr.bin/fgen/fgen.l
===================================================================
RCS file: /home/cvs/src/usr.bin/fgen/fgen.l,v
retrieving revision 1.5
diff -u -p -r1.5 fgen.l
--- usr.bin/fgen/fgen.l 12 Jul 2002 00:26:24 -0000 1.5
+++ usr.bin/fgen/fgen.l 12 Jul 2002 05:55:41 -0000
@@ -1955,6 +1955,7 @@ tokenize(input)
}
break;
default:
+ break;
}
}
return;
Index: usr.bin/last/last.c
===================================================================
RCS file: /home/cvs/src/usr.bin/last/last.c,v
retrieving revision 1.19
diff -u -p -r1.19 last.c
--- usr.bin/last/last.c 16 Feb 2002 21:27:47 -0000 1.19
+++ usr.bin/last/last.c 3 Jul 2002 02:08:27 -0000
@@ -223,6 +223,7 @@ checkargs()
"Warning: Ignoring username[s]\n");
break;
default:
+ break;
/* PRINT NOTHING */
}
}
Index: usr.bin/lndir/lndir.c
===================================================================
RCS file: /home/cvs/src/usr.bin/lndir/lndir.c,v
retrieving revision 1.10
diff -u -p -r1.10 lndir.c
--- usr.bin/lndir/lndir.c 17 Jun 2002 07:06:39 -0000 1.10
+++ usr.bin/lndir/lndir.c 3 Jul 2002 23:08:56 -0000
@@ -296,6 +296,7 @@ dodir(char *fn, struct stat *fs, struct
warn("%s", dp->d_name);
}
next:
+ ;
}
closedir(df);
Index: usr.bin/strings/strings.c
===================================================================
RCS file: /home/cvs/src/usr.bin/strings/strings.c,v
retrieving revision 1.7
diff -u -p -r1.7 strings.c
--- usr.bin/strings/strings.c 16 Feb 2002 21:27:53 -0000 1.7
+++ usr.bin/strings/strings.c 3 Jul 2002 23:22:11 -0000
@@ -244,6 +244,7 @@ start:
putchar((char)ch);
putchar('\n');
out:
+ ;
}
cnt = 0;
}
Index: usr.sbin/mtree/compare.c
===================================================================
RCS file: /home/cvs/src/usr.sbin/mtree/compare.c,v
retrieving revision 1.15
diff -u -p -r1.15 compare.c
--- usr.sbin/mtree/compare.c 14 Mar 2002 16:44:25 -0000 1.15
+++ usr.sbin/mtree/compare.c 3 Jul 2002 04:04:24 -0000
@@ -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) {
Index: usr.sbin/spppcontrol/spppcontrol.c
===================================================================
RCS file: /home/cvs/src/usr.sbin/spppcontrol/spppcontrol.c,v
retrieving revision 1.2
diff -u -p -r1.2 spppcontrol.c
--- usr.sbin/spppcontrol/spppcontrol.c 29 May 2002 09:48:14 -0000 1.2
+++ usr.sbin/spppcontrol/spppcontrol.c 8 Jun 2002 18:40:32 -0000
@@ -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>
Index: usr.sbin/tcpdump/print-ike.c
===================================================================
RCS file: /home/cvs/src/usr.sbin/tcpdump/print-ike.c,v
retrieving revision 1.14
diff -u -p -r1.14 print-ike.c
--- usr.sbin/tcpdump/print-ike.c 11 Jul 2002 16:14:52 -0000 1.14
+++ usr.sbin/tcpdump/print-ike.c 11 Jul 2002 23:24:33 -0000
@@ -687,6 +687,7 @@ ike_pl_print (u_char type, u_char *buf,
break;
default:
+ break;
}
ike_tab_level--;
Visit your host, monkey.org