Date: Mon, 24 Aug 2015 00:34:10 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287087 - head/usr.sbin/config Message-ID: <201508240034.t7O0YAB1009082@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Mon Aug 24 00:34:09 2015 New Revision: 287087 URL: https://svnweb.freebsd.org/changeset/base/287087 Log: 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 Modified: head/usr.sbin/config/main.c Modified: head/usr.sbin/config/main.c ============================================================================== --- head/usr.sbin/config/main.c Mon Aug 24 00:03:51 2015 (r287086) +++ head/usr.sbin/config/main.c Mon Aug 24 00:34:09 2015 (r287087) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508240034.t7O0YAB1009082>