mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
config: remove set but unchecked variable
reported by: gcc5.1
This commit is contained in:
parent
565716e60e
commit
68c45bf852
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281731
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user