Add compile and link-time deprecation warnings for fgetln()

Although the current implementation in libbsd is probably one of the
safest ones around, it still poses some problems when used with many
file streams. This function has now a replacement, that is both more
standard and portable. Ask users to switch to getline(3) instead.
This commit is contained in:
Guillem Jover
2015-09-22 16:22:56 +02:00
parent 41ff37bbcc
commit 151bc71d64
3 changed files with 12 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ check_PROGRAMS += proctitle
endif
fgetln_SOURCES = test-stream.c test-stream.h fgetln.c
fgetln_CFLAGS = -Wno-deprecated-declarations
fparseln_SOURCES = test-stream.c test-stream.h fparseln.c
proctitle_init_SOURCES = proctitle.c