commit 12facdbeb1a1c012d16bca8cd8d77b04ee8d10ae
parent 218c16a7b8203be267849416fe09f2f650fad4df
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 15 Nov 2020 21:20:29 +0100
avoid shadowed `name' global variable
by Augustin Fabre <augustin@augfab.fr>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/stagit-gopher.c b/stagit-gopher.c
@@ -393,12 +393,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;
}