]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/client/lldpcli.c
compat: use getline() instead of fgetln()
authorVincent Bernat <vincent@bernat.im>
Sat, 12 Dec 2015 21:47:41 +0000 (22:47 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 12 Dec 2015 21:47:41 +0000 (22:47 +0100)
commitaf828c473244ebff5c8ada0a1ff29d95e673e555
tree2ad16ecf5a0efeac3eef24ee6aac8b2e39c48431
parent47bbc5f3743cacb7a38a62ebcd64c117bd556eb6
compat: use getline() instead of fgetln()

getline() is POSIX.1-2008 while fgetln() is BSD. Write a simple
implementation from the NetBSD one for too old OSes.
configure.ac
src/client/lldpcli.c
src/compat/compat.h
src/compat/fgetln.c [deleted file]
src/compat/getline.c [new file with mode: 0644]