lookip: Use line buffering for stdout
authorTobias Brunner <tobias@strongswan.org>
Wed, 8 Apr 2020 14:39:28 +0000 (16:39 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 7 May 2020 13:05:55 +0000 (15:05 +0200)
commit3d92cff726d6fb9f69254241cb6169bed69e6ddb
treed5993655a93c9c655b36890e653bf30eb63e7fdf
parent7ae4ced06f73dcb80a4c548b0b5f3754c2007826
lookip: Use line buffering for stdout

Otherwise, the output is buffered when e.g. piping the output to another
command (or file).  And it avoids having to call fflush() in the
interactive mode.

Fixes #3404.
src/libcharon/plugins/lookip/lookip.c