sysctl: no need to check for eof twice
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Oct 2016 07:26:31 +0000 (09:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Nov 2016 17:29:59 +0000 (11:29 -0600)
commit4f14f2bb6f7402302fd4fcad6754e5ee218f4487
tree33c802a1d3bedd402e2da2144c7b2e524d65b3c4
parent98bf5011fe670ea18b7b35d6c8ca3e84d4efbccf
sysctl: no need to check for eof twice

Let's only check for eof once after the fgets(). There's no point in checking
EOF before the first read, and twice in each loop.
src/sysctl/sysctl.c