summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-04-08 02:22:55 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-04-08 02:22:55 +0000
commit60fb9583980297561da4970545cef7895ac7265e (patch)
tree3215c7ed3db0b6a67f45b4ec2dedca337a6f75a2
parent74f4ceb0cac90a7fc0cccda540e03cd19f42f47b (diff)
Whack some obviously dead code (double return's, code after goto).
ok pedro@
-rw-r--r--usr.sbin/afs/src/appl/pts/pts.c2
-rw-r--r--usr.sbin/afs/src/appl/vos/vos_backup.c2
-rw-r--r--usr.sbin/config/mkmakefile.c5
3 files changed, 1 insertions, 8 deletions
diff --git a/usr.sbin/afs/src/appl/pts/pts.c b/usr.sbin/afs/src/appl/pts/pts.c
index 948e73f3e7d..5aebf361bfd 100644
--- a/usr.sbin/afs/src/appl/pts/pts.c
+++ b/usr.sbin/afs/src/appl/pts/pts.c
@@ -152,8 +152,6 @@ dump_cmd (int argc, char **argv)
}
free_db_server_context(&conn_context);
return error;
-
- return 0;
}
static int
diff --git a/usr.sbin/afs/src/appl/vos/vos_backup.c b/usr.sbin/afs/src/appl/vos/vos_backup.c
index 0ac29745ed3..39c526e7cc2 100644
--- a/usr.sbin/afs/src/appl/vos/vos_backup.c
+++ b/usr.sbin/afs/src/appl/vos/vos_backup.c
@@ -328,6 +328,4 @@ vos_backupsys(int argc, char **argv)
NULL,NULL,
arlalib_getauthflag (noauth, localauth, 0, 0),
backup_volume_wrap, NULL);
- return 0;
-
}
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index 405578139ba..916d6d55843 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkmakefile.c,v 1.17 2005/12/05 04:32:21 drahn Exp $ */
+/* $OpenBSD: mkmakefile.c,v 1.18 2006/04/08 02:22:54 krw Exp $ */
/* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */
/*
@@ -122,9 +122,6 @@ mkmakefile(void)
"config: error reading %s (at line %d): %s\n",
ifname, lineno, strerror(errno));
goto bad;
- /* (void)unlink("Makefile"); */
- free(ifname);
- return (1);
}
if (fclose(ofp)) {
ofp = NULL;