From: Hiltjo Posthuma Date: Sun, 15 Nov 2020 19:58:58 +0000 (+0100) Subject: avoid shadowed `name' global variable X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=4f60446c011b45e862540c97b684c62fd8dc3c60;p=forks%2Fstagit.git avoid shadowed `name' global variable by Augustin Fabre --- diff --git a/stagit.c b/stagit.c index a263648..4c5ca50 100644 --- a/stagit.c +++ b/stagit.c @@ -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; }