summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-11-28 11:27:21 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-11-28 11:27:21 +0000
commitcea176e3ef2a79b69f98f73370b80b838d78b126 (patch)
tree14eeb1ad115c4b20e7c3c3387e810f07b67608fe /lib
parent280b873c0e10e85910c239eac02396260ce572be (diff)
remove redundant macro
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/TEST/test.h1
-rw-r--r--lib/libc_r/TEST/test_pw.c2
-rw-r--r--lib/libc_r/TEST/test_readdir.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc_r/TEST/test.h b/lib/libc_r/TEST/test.h
index 5fc658a867a..51481bc68f6 100644
--- a/lib/libc_r/TEST/test.h
+++ b/lib/libc_r/TEST/test.h
@@ -100,7 +100,6 @@ __panic(type, errstr, filenm, lineno, fmt)
#define CHECKe(x) _CHECK(x, != -1, strerror(errno))
#define CHECKn(x) _CHECK(x, != 0, strerror(errno))
#define CHECKhn(x) _CHECK(x, != 0, hstrerror(h_errno))
-#define CHECKen(x) _CHECK(x, != 0, strerror(errno))
#define SUCCEED exit(0)
diff --git a/lib/libc_r/TEST/test_pw.c b/lib/libc_r/TEST/test_pw.c
index b99e7cc37fd..c177fdf90c5 100644
--- a/lib/libc_r/TEST/test_pw.c
+++ b/lib/libc_r/TEST/test_pw.c
@@ -9,7 +9,7 @@ main()
{
struct passwd *pw;
- CHECKen(pw = getpwuid(getuid()));
+ CHECKn(pw = getpwuid(getuid()));
printf("getpwuid(%d) => %p\n", getuid(), pw);
printf(" name: %s\n uid: %d\n gid: %d\n"
"class: %s\ngecos: %s\n dir: %s\nshell: %s\n",
diff --git a/lib/libc_r/TEST/test_readdir.c b/lib/libc_r/TEST/test_readdir.c
index 39ca3e4201d..fd098e0e89a 100644
--- a/lib/libc_r/TEST/test_readdir.c
+++ b/lib/libc_r/TEST/test_readdir.c
@@ -20,7 +20,7 @@ main()
DIR * dot_dir;
int found = 0;
- CHECKen(dot_dir = opendir("."));
+ CHECKn(dot_dir = opendir("."));
while ((file = readdir(dot_dir)) != NULL)
if (strcmp("test_readdir", file->d_name) == 0)
found = 1;