summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-08-24 00:34:09 +0000
committerimp <imp@FreeBSD.org>2015-08-24 00:34:09 +0000
commitb8948860612c029177968b016b0dbba560095467 (patch)
tree209b1d0debe829615533860b29ada92ad705cc85 /usr.sbin/config
parent70b2b492001f0d16684fac67a7a9728eaa2bf752 (diff)
downloadFreeBSD-src-b8948860612c029177968b016b0dbba560095467.zip
FreeBSD-src-b8948860612c029177968b016b0dbba560095467.tar.gz
Make it clear that we're ignoring the return value fread(3). All
errors that might happen here will be reported a few lines down. CID: 1295248
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index f2d2a70..c87f3bb 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -714,7 +714,7 @@ kernconfdump(const char *file)
if (pp == NULL)
errx(EXIT_FAILURE, "popen() failed");
free(cmd);
- fread(o, osz, 1, pp);
+ (void)fread(o, osz, 1, pp);
pclose(pp);
r = sscanf(o, "%d%d%d%d%d", &off, &size, &t1, &t2, &align);
free(o);
OpenPOWER on IntegriCloud