summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2007-12-16 23:38:55 +0000
committerdas <das@FreeBSD.org>2007-12-16 23:38:55 +0000
commit3b586d8c223909e7bba06c352c59e1743b83ebf5 (patch)
tree64d14b46df08fb60b9714d6f83fd54f25ffa3df9 /tools
parentbbed07ed38885f1d6e103ce213587f7f2248c76d (diff)
downloadFreeBSD-src-3b586d8c223909e7bba06c352c59e1743b83ebf5.zip
FreeBSD-src-3b586d8c223909e7bba06c352c59e1743b83ebf5.tar.gz
Fix an amusing typo that has prevented this from compiling since 2004.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/libc/gen/test-wordexp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/regression/lib/libc/gen/test-wordexp.c b/tools/regression/lib/libc/gen/test-wordexp.c
index 49490d8..c78199e 100644
--- a/tools/regression/lib/libc/gen/test-wordexp.c
+++ b/tools/regression/lib/libc/gen/test-wordexp.c
@@ -45,7 +45,7 @@ main(int argc, char *argv[])
int r;
/* Test that the macros are there. */
- (void)(WRDE_APPEND + WRDE_DOOFS + WRDE_NOCMD + WRDE_REUSE +
+ (void)(WRDE_APPEND + WRDE_DOOFFS + WRDE_NOCMD + WRDE_REUSE +
WRDE_SHOWERR + WRDE_UNDEF);
(void)(WRDE_BADCHAR + WRDE_BADVAL + WRDE_CMDSUB + WRDE_NOSPACE +
WRDE_SYNTAX);
@@ -59,9 +59,9 @@ main(int argc, char *argv[])
assert(we.we_wordv[2] == NULL);
wordfree(&we);
- /* WRDE_DOOFS */
+ /* WRDE_DOOFFS */
we.we_offs = 3;
- r = wordexp("hello world", &we, WRDE_DOOFS);
+ r = wordexp("hello world", &we, WRDE_DOOFFS);
assert(r == 0);
assert(we.we_wordc == 2);
assert(we.we_wordv[0] == NULL);
@@ -95,13 +95,13 @@ main(int argc, char *argv[])
assert(we.we_wordv[4] == NULL);
wordfree(&we);
- /* WRDE_DOOFS + WRDE_APPEND */
+ /* WRDE_DOOFFS + WRDE_APPEND */
we.we_offs = 2;
- r = wordexp("this is", &we, WRDE_DOOFS);
+ r = wordexp("this is", &we, WRDE_DOOFFS);
assert(r == 0);
- r = wordexp("a test", &we, WRDE_APPEND|WRDE_DOOFS);
+ r = wordexp("a test", &we, WRDE_APPEND|WRDE_DOOFFS);
assert(r == 0);
- r = wordexp("of wordexp", &we, WRDE_APPEND|WRDE_DOOFS);
+ r = wordexp("of wordexp", &we, WRDE_APPEND|WRDE_DOOFFS);
assert(r == 0);
assert(we.we_wordc == 6);
assert(we.we_wordv[0] == NULL);
OpenPOWER on IntegriCloud