aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2020-11-15 20:58:58 +0100
committerHiltjo Posthuma <[email protected]>2020-11-15 20:58:58 +0100
commit4f60446c011b45e862540c97b684c62fd8dc3c60 (patch)
treeabc7d9a7cb71002b70aca96c1dfc3830aebfb4a4
parent9467f347a2224ac95b96ef5c74d50a4e2aad5241 (diff)
downloadstagit-4f60446c011b45e862540c97b684c62fd8dc3c60.tar.gz
stagit-4f60446c011b45e862540c97b684c62fd8dc3c60.zip
avoid shadowed `name' global variable
by Augustin Fabre <[email protected]>
-rw-r--r--stagit.c6
1 files changed, 3 insertions, 3 deletions
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;
}