summaryrefslogtreecommitdiffstats
path: root/test-fgetln.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-11-07 17:58:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-11-07 17:58:55 +0000
commitf024d444d299de331f8a9c932e479fedfbba6c5e (patch)
tree475615c6cfec51ea70542f32984d50357bc9459c /test-fgetln.c
parent0441e71e8746df106efe8cf9b9ecb18f0d0824a4 (diff)
downloadmandoc-f024d444d299de331f8a9c932e479fedfbba6c5e.tar.gz
Modernization, no functional change intended:
Use the POSIX function getline(3) rather than the slightly dangerous BSD function fgetln(3). Remove the related compatibility code.
Diffstat (limited to 'test-fgetln.c')
-rw-r--r--test-fgetln.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/test-fgetln.c b/test-fgetln.c
deleted file mode 100644
index c2abf06d..00000000
--- a/test-fgetln.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <sys/types.h>
-#include <stdio.h>
-#include <unistd.h>
-
-int
-main(void)
-{
- size_t sz;
- fclose(stdin);
- return fgetln(stdin, &sz) != NULL;
-}