summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-11-03 15:42:10 +0000
committerderaadt <deraadt@openbsd.org>2007-11-03 15:42:10 +0000
commit76411979b445cf4ecf52813ff3d3577f9b513215 (patch)
treeacd8684f8874db124c8917d5cf71b7804029c923
parentCorrect bad example, in /etc/ttys use the _tty_ not _cua_, of course. (diff)
downloadwireguard-openbsd-76411979b445cf4ecf52813ff3d3577f9b513215.tar.xz
wireguard-openbsd-76411979b445cf4ecf52813ff3d3577f9b513215.zip
fix some lint FALLTHROUGH
-rw-r--r--usr.bin/make/var.c3
-rw-r--r--usr.bin/make/varmodifiers.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index 9bb206865df..303b152f377 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: var.c,v 1.80 2007/09/17 10:39:33 espie Exp $ */
+/* $OpenBSD: var.c,v 1.81 2007/11/03 15:42:10 deraadt Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
@@ -1017,6 +1017,7 @@ Var_Parse(const char *str, /* The string to parse */
Fatal(
"Using $< in a non-suffix rule context is a GNUmake idiom (line %lu of %s)",
n->lineno, n->fname);
+ break;
default:
Error(
"Using undefined dynamic variable $%s (line %lu of %s)",
diff --git a/usr.bin/make/varmodifiers.c b/usr.bin/make/varmodifiers.c
index 18dffeb8851..206b9a6c67a 100644
--- a/usr.bin/make/varmodifiers.c
+++ b/usr.bin/make/varmodifiers.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: varmodifiers.c,v 1.24 2007/09/17 09:44:20 espie Exp $ */
+/* $OpenBSD: varmodifiers.c,v 1.25 2007/11/03 15:42:11 deraadt Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
@@ -905,7 +905,7 @@ VarRESubstitute(struct Name *word, bool addSpace, Buffer buf, void *patternp)
break;
default:
VarREError(xrv, &pat->re, "Unexpected regex error");
- /* fall through */
+ /* FALLTHROUGH */
case REG_NOMATCH:
if (*wp) {
MAYBE_ADD_SPACE();