avoid shadowed `name' global variable

by Augustin Fabre <augustin@augfab.fr>
This commit is contained in:
Hiltjo Posthuma 2020-11-15 20:58:58 +01:00
parent 9467f347a2
commit 4f60446c01

View file

@ -348,12 +348,12 @@ err:
}
FILE *
efopen(const char *name, const char *flags)
efopen(const char *filename, const char *flags)
{
FILE *fp;
if (!(fp = fopen(name, flags)))
err(1, "fopen: '%s'", name);
if (!(fp = fopen(filename, flags)))
err(1, "fopen: '%s'", filename);
return fp;
}