svn commit: r281731 - head/usr.sbin/config
Eitan Adler
eadler at FreeBSD.org
Sun Apr 19 08:30:14 UTC 2015
Author: eadler
Date: Sun Apr 19 08:30:13 2015
New Revision: 281731
URL: https://svnweb.freebsd.org/changeset/base/281731
Log:
config: remove set but unchecked variable
reported by: gcc5.1
Modified:
head/usr.sbin/config/main.c
Modified: head/usr.sbin/config/main.c
==============================================================================
--- head/usr.sbin/config/main.c Sun Apr 19 07:49:39 2015 (r281730)
+++ head/usr.sbin/config/main.c Sun Apr 19 08:30:13 2015 (r281731)
@@ -686,7 +686,7 @@ kernconfdump(const char *file)
{
struct stat st;
FILE *fp, *pp;
- int error, len, osz, r;
+ int error, osz, r;
unsigned int i, off, size, t1, t2, align;
char *cmd, *o;
@@ -714,7 +714,7 @@ kernconfdump(const char *file)
if (pp == NULL)
errx(EXIT_FAILURE, "popen() failed");
free(cmd);
- len = fread(o, osz, 1, pp);
+ fread(o, osz, 1, pp);
pclose(pp);
r = sscanf(o, "%d%d%d%d%d", &off, &size, &t1, &t2, &align);
free(o);
More information about the svn-src-head
mailing list