summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/adventure/main.c12
-rw-r--r--lib/libc/gen/nlist.c3
-rw-r--r--sbin/ifconfig/ifconfig.c3
3 files changed, 8 insertions, 10 deletions
diff --git a/games/adventure/main.c b/games/adventure/main.c
index 9cb0c396af3..bac7f848130 100644
--- a/games/adventure/main.c
+++ b/games/adventure/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.23 2016/03/08 10:48:39 mestre Exp $ */
+/* $OpenBSD: main.c,v 1.24 2016/12/25 20:30:41 krw Exp $ */
/* $NetBSD: main.c,v 1.5 1996/05/21 21:53:09 mrg Exp $ */
/*-
@@ -102,7 +102,7 @@ l2000: if (loc == 0)
}
kk = &rtext[16];
}
-l2001: if (toting(bear))
+ if (toting(bear))
rspeak(141); /* 2001 */
speak(kk);
k = 1;
@@ -275,7 +275,7 @@ l4000: verb = k;
obj = wd2[0];
if (obj != 0)
goto l4090;
-l4080:
+
switch (verb) {
case 1: /* take = 8010 */
if (atloc[loc] == 0 || linkx[atloc[loc]] != 0)
@@ -433,7 +433,7 @@ l9020: case 2: /* drop = 9020 */
case 2012: goto l2012;
default: bug(105);
}
-l9030: case 3:
+ case 3:
switch (trsay()) {
case 2012: goto l2012;
case 2630: goto l2630;
@@ -599,7 +599,7 @@ l9270: case 27: /* read */
|| !closed) goto l2011;
hinted[2] = yes(192, 193, 54);
goto l2012;
-l9280: case 28: /* break */
+ case 28: /* break */
if (obj == mirror)
spk = 148;
if (obj == vase && prop[vase] == 0) {
@@ -614,7 +614,7 @@ l9280: case 28: /* break */
goto l2011;
rspeak(197);
done(3);
-l9290: case 29: /* wake */
+ case 29: /* wake */
if (obj != dwarf||!closed)
goto l2011;
rspeak(199);
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c
index fa966ac8b24..f4dae6eb32c 100644
--- a/lib/libc/gen/nlist.c
+++ b/lib/libc/gen/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.67 2016/09/21 04:38:56 guenther Exp $ */
+/* $OpenBSD: nlist.c,v 1.68 2016/12/25 20:30:41 krw Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -279,7 +279,6 @@ __fdnlist(int fd, struct nlist *list)
}
}
}
-elf_done:
if (usemalloc)
free(strtab);
else
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index bd98db2bfc5..f74392cff80 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.335 2016/12/20 13:26:24 stsp Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.336 2016/12/25 20:30:41 krw Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -5315,7 +5315,6 @@ utf16_to_char(uint16_t *in, int inlen, char *out, size_t outlen)
c = inlen > 0 ? letoh16(*in) : 0;
if (c == 0 || --outlen == 0) {
/* always NUL terminate result */
-done:
*out = '\0';
break;
}