summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-05-16 22:08:17 +0000
committerstefanf <stefanf@FreeBSD.org>2004-05-16 22:08:17 +0000
commit1b3274a8a0b010b7ed65bedc89f09a69ef92958d (patch)
treed0e580fe01975ec46af69e68238174deea46d8f4
parent937b21a465ef1c1a20915d594e2a97a5c7413bf4 (diff)
downloadFreeBSD-src-1b3274a8a0b010b7ed65bedc89f09a69ef92958d.zip
FreeBSD-src-1b3274a8a0b010b7ed65bedc89f09a69ef92958d.tar.gz
Remove spurious semicolons. Outside of functions they are actually errors but
GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5
-rw-r--r--lib/libdisk/disk.c2
-rw-r--r--usr.bin/finger/net.c2
-rw-r--r--usr.sbin/boot0cfg/boot0cfg.c2
-rw-r--r--usr.sbin/gstat/gstat.c2
-rw-r--r--usr.sbin/keyserv/keyserv.h2
-rw-r--r--usr.sbin/mrouted/cfparse.y2
-rw-r--r--usr.sbin/pccard/pccardc/pccardc.c2
-rw-r--r--usr.sbin/rpc.lockd/lockd_lock.c2
8 files changed, 8 insertions, 8 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index ca2d19e..5d2d9d5 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -72,7 +72,7 @@ chunk_name(chunk_e type)
case apple: return ("apple");
default: return ("??");
}
-};
+}
struct disk *
Open_Disk(const char *name)
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c
index a3c40b5..2bd35ad 100644
--- a/usr.bin/finger/net.c
+++ b/usr.bin/finger/net.c
@@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$");
#include <utmp.h>
#include "finger.h"
-static void cleanup(int sig);;
+static void cleanup(int sig);
static int do_protocol(const char *name, const struct addrinfo *ai);
static void trying(const struct addrinfo *ai);
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c
index 32a4cfb..21f0ce7 100644
--- a/usr.sbin/boot0cfg/boot0cfg.c
+++ b/usr.sbin/boot0cfg/boot0cfg.c
@@ -367,7 +367,7 @@ boot0bs(const u_int8_t *bs)
if (memcmp(bs + ident[i].off, ident[i].key, ident[i].len))
return 0;
return 1;
-};
+}
/*
* Adjust "and" and "or" masks for a -o option argument.
diff --git a/usr.sbin/gstat/gstat.c b/usr.sbin/gstat/gstat.c
index 69b2da9..0c6643c 100644
--- a/usr.sbin/gstat/gstat.c
+++ b/usr.sbin/gstat/gstat.c
@@ -62,7 +62,7 @@ main(int argc, char **argv)
struct timespec tp, tq;
struct gmesh gmp;
struct gprovider *pp;
- struct gconsumer *cp;;
+ struct gconsumer *cp;
struct gident *gid;
short cf, cb;
char *p;
diff --git a/usr.sbin/keyserv/keyserv.h b/usr.sbin/keyserv/keyserv.h
index 0cc6a36..3395f28 100644
--- a/usr.sbin/keyserv/keyserv.h
+++ b/usr.sbin/keyserv/keyserv.h
@@ -3,7 +3,7 @@
*/
extern void setmodulus __P((char *modx));
-extern keystatus pk_setkey __P(( uid_t, keybuf ));;
+extern keystatus pk_setkey __P(( uid_t, keybuf ));
extern keystatus pk_encrypt __P(( uid_t, char *, netobj *, des_block * ));
extern keystatus pk_decrypt __P(( uid_t, char *, netobj *, des_block * ));
extern keystatus pk_netput __P(( uid_t, key_netstarg * ));
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y
index fae52087..1827f6a 100644
--- a/usr.sbin/mrouted/cfparse.y
+++ b/usr.sbin/mrouted/cfparse.y
@@ -20,7 +20,7 @@
* Local function declarations
*/
static void fatal __P((char *fmt, ...)) __printflike(1, 2);
-static void warn __P((char *fmt, ...)) __printflike(1, 2);;
+static void warn __P((char *fmt, ...)) __printflike(1, 2);
static void yyerror __P((char *s));
static char * next_word __P((void));
static int yylex __P((void));
diff --git a/usr.sbin/pccard/pccardc/pccardc.c b/usr.sbin/pccard/pccardc/pccardc.c
index 6b8a549..c1f6ece 100644
--- a/usr.sbin/pccard/pccardc/pccardc.c
+++ b/usr.sbin/pccard/pccardc/pccardc.c
@@ -36,7 +36,7 @@ static const char rcsid[] =
typedef int (*main_t)(int, char **);
-#define DECL(foo) int foo(int, char**);
+#define DECL(foo) int foo(int, char**)
DECL(beep_main);
DECL(dumpcis_main);
DECL(dumpcisfile_main);
diff --git a/usr.sbin/rpc.lockd/lockd_lock.c b/usr.sbin/rpc.lockd/lockd_lock.c
index 68aa159..9779aa4 100644
--- a/usr.sbin/rpc.lockd/lockd_lock.c
+++ b/usr.sbin/rpc.lockd/lockd_lock.c
@@ -172,7 +172,7 @@ void fill_file_lock(struct file_lock *fl, const fhandle_t *fh,
const u_int64_t offset, const u_int64_t len, const char *caller_name,
const int state, const int status, const int flags, const int blocking);
int regions_overlap(const u_int64_t start1, const u_int64_t len1,
- const u_int64_t start2, const u_int64_t len2);;
+ const u_int64_t start2, const u_int64_t len2);
enum split_status region_compare(const u_int64_t starte, const u_int64_t lene,
const u_int64_t startu, const u_int64_t lenu,
u_int64_t *start1, u_int64_t *len1, u_int64_t *start2, u_int64_t *len2);
OpenPOWER on IntegriCloud