summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-14 15:56:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-14 15:56:51 +0000
commitfeec48d5f732ddd5c35f08e7285a38c41c472c34 (patch)
tree43061205ed6cdf5d8850c44802cc141d2f048a5d
parent7c821ac788850aab081c1e7bd587a17536532ecf (diff)
cleanup up a nest of if/if/else
-rw-r--r--usr.bin/m4/eval.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c
index c76801adec0..a145c1027d6 100644
--- a/usr.bin/m4/eval.c
+++ b/usr.bin/m4/eval.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eval.c,v 1.70 2012/04/12 17:00:11 espie Exp $ */
+/* $OpenBSD: eval.c,v 1.71 2013/11/14 15:56:50 deraadt Exp $ */
/* $NetBSD: eval.c,v 1.7 1996/11/10 21:21:29 pk Exp $ */
/*
@@ -262,8 +262,8 @@ expand_builtin(const char *argv[], int argc, int td)
doesyscmd(argv[2]);
break;
case INCLTYPE:
- if (argc > 2)
- if (!doincl(argv[2]))
+ if (argc > 2) {
+ if (!doincl(argv[2])) {
if (mimic_gnu) {
warn("%s at line %lu: include(%s)",
CURRENT_NAME, CURRENT_LINE, argv[2]);
@@ -271,6 +271,8 @@ expand_builtin(const char *argv[], int argc, int td)
} else
err(1, "%s at line %lu: include(%s)",
CURRENT_NAME, CURRENT_LINE, argv[2]);
+ }
+ }
break;
case SINCTYPE: