projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9467f34
)
avoid shadowed `name' global variable
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 15 Nov 2020 19:58:58 +0000
(20:58 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 15 Nov 2020 19:58:58 +0000
(20:58 +0100)
by Augustin Fabre <augustin@augfab.fr>
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index a263648cca3c36a769cc41649ddd3d14dab0d4cb..4c5ca505e4030e1a91b1ee4cb63f0ac2e41c5285 100644
(file)
--- a/
stagit.c
+++ b/
stagit.c
@@
-348,12
+348,12
@@
err:
}
FILE *
-efopen(const char *name, const char *flags)
+efopen(const char *
file
name, const char *flags)
{
FILE *fp;
- if (!(fp = fopen(name, flags)))
- err(1, "fopen: '%s'", name);
+ if (!(fp = fopen(
file
name, flags)))
+ err(1, "fopen: '%s'",
file
name);
return fp;
}