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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"