summaryrefslogtreecommitdiff
path: root/bin/test
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-01 18:30:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-01 18:30:39 +0000
commita43ab78081569419e6c61ef03c154da56a667dd8 (patch)
tree9d27b3251a03c6298aa14827691ac2399227b0e5 /bin/test
parent380f0870e4aafdd13a6050959648e2e735f2ea56 (diff)
i am bored enough to fix terminal space/tab uglies
Diffstat (limited to 'bin/test')
-rw-r--r--bin/test/test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/test/test.c b/bin/test/test.c
index 2ccf7543b5b..362b1f203ff 100644
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test.c,v 1.4 1997/06/18 20:34:45 kstailey Exp $ */
+/* $OpenBSD: test.c,v 1.5 1997/09/01 18:30:38 deraadt Exp $ */
/* $NetBSD: test.c,v 1.15 1995/03/21 07:04:06 cgd Exp $ */
/*
@@ -12,7 +12,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: test.c,v 1.4 1997/06/18 20:34:45 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: test.c,v 1.5 1997/09/01 18:30:38 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -181,7 +181,7 @@ main(argc, argv)
break;
case 4:
if (argv[1][0] != '!' || argv[1][1] != '\0') {
- if (t_lex(argv[2]),
+ if (t_lex(argv[2]),
t_wp_op && t_wp_op->op_type == BINOP) {
t_wp = &argv[1];
return (binop() == 0);
@@ -190,7 +190,7 @@ main(argc, argv)
break;
case 5:
if (argv[1][0] == '!' && argv[1][1] == '\0') {
- if (t_lex(argv[3]),
+ if (t_lex(argv[3]),
t_wp_op && t_wp_op->op_type == BINOP) {
t_wp = &argv[2];
return !(binop() == 0);
@@ -286,7 +286,7 @@ primary(n)
if (t_lex(t_wp[1]), t_wp_op && t_wp_op->op_type == BINOP) {
return binop();
- }
+ }
return strlen(*t_wp) > 0;
}
@@ -303,7 +303,7 @@ binop()
if ((opnd2 = *++t_wp) == NULL)
syntax(op->op_text, "argument expected");
-
+
switch (op->op_num) {
case STREQ:
return strcmp(opnd1, opnd2) == 0;
@@ -353,7 +353,7 @@ filstat(nm, mode)
return 0;
}
- if (stat(nm, &s) != 0)
+ if (stat(nm, &s) != 0)
return 0;
switch (mode) {
@@ -454,7 +454,7 @@ getn(s)
while (isspace(*p))
p++;
-
+
if (*p)
errx(2, "%s: bad number", s);