stagit

avoid shadowed `name' global variable

by Augustin Fabre 

Hiltjo Posthuma contact@arjunchoudhary.com

commit: 7de514d parent: b859321
1 files changed, 3 insertions(+), 3 deletions(-)
Mstagit.c+3-3
M · stagit.c +3, -3
 1@@ -348,12 +348,12 @@ err:
 2 }
 3 
 4 FILE *
 5-efopen(const char *name, const char *flags)
 6+efopen(const char *filename, const char *flags)
 7 {
 8 	FILE *fp;
 9 
10-	if (!(fp = fopen(name, flags)))
11-		err(1, "fopen: '%s'", name);
12+	if (!(fp = fopen(filename, flags)))
13+		err(1, "fopen: '%s'", filename);
14 
15 	return fp;
16 }