summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authord <d@openbsd.org>2000-01-06 06:53:09 +0000
committerd <d@openbsd.org>2000-01-06 06:53:09 +0000
commitcd9352bc38e0b0317d3bd98c0b7b6414cf386113 (patch)
treeda4357402ed15c68b01cfb6aec66a4cc6ee2c910 /lib
parentrepair comment (diff)
downloadwireguard-openbsd-cd9352bc38e0b0317d3bd98c0b7b6414cf386113.tar.xz
wireguard-openbsd-cd9352bc38e0b0317d3bd98c0b7b6414cf386113.zip
comment. cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/TEST/test_cwd.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc_r/TEST/test_cwd.c b/lib/libc_r/TEST/test_cwd.c
index 9f19d88ab53..90e1ef8bddd 100644
--- a/lib/libc_r/TEST/test_cwd.c
+++ b/lib/libc_r/TEST/test_cwd.c
@@ -1,3 +1,7 @@
+/* $OpenBSD: test_cwd.c,v 1.3 2000/01/06 06:53:09 d Exp $ */
+/*
+ * 'Test' getcwd() and getwd()
+ */
#include <stdio.h>
#include <sys/param.h>
#include <unistd.h>
@@ -6,9 +10,12 @@
int
main(int argc, char **argv)
{
- char wd[MAXPATHLEN], *getcwd(), *getwd();
+ char wd[MAXPATHLEN];
+ char *path;
- printf("getcwd => %s\n", getcwd(wd, MAXPATHLEN));
- printf("getwd => %s\n", getwd(wd));
+ ASSERT(path = getcwd(wd, sizeof wd));
+ printf("getcwd => %s\n", path);
+ ASSERT(path = getwd(wd));
+ printf("getwd => %s\n", path);
SUCCEED;
}