summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-19 07:04:01 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-19 07:04:01 +0000
commita0f9833ef7bf9dafa258ac30329223b5d1022965 (patch)
tree85d231ccd03780a97fe49ac2aa9211a990632625 /test
parentba23f7118c09ca1807800882f1cf3661fa76dded (diff)
Silence some whining
Diffstat (limited to 'test')
-rw-r--r--test/stdlib/ptytest.c1
-rw-r--r--test/stdlib/testatexit.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/test/stdlib/ptytest.c b/test/stdlib/ptytest.c
index e85072e76..dd531b416 100644
--- a/test/stdlib/ptytest.c
+++ b/test/stdlib/ptytest.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/test/stdlib/testatexit.c b/test/stdlib/testatexit.c
index 374f7b8aa..3d4856df3 100644
--- a/test/stdlib/testatexit.c
+++ b/test/stdlib/testatexit.c
@@ -69,6 +69,7 @@ main ( void )
i = (i+1) % numfuncs;
}
printf("%d functions registered with atexit.\n", count);
- /* implicit exit */
+
+ return 0;
}