avoid shadowed `name' global variable - stagit - static git page generator
 (HTM) git clone git://git.codemadness.org/stagit
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4f60446c011b45e862540c97b684c62fd8dc3c60
 (DIR) parent 9467f347a2224ac95b96ef5c74d50a4e2aad5241
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 15 Nov 2020 20:58:58 +0100
       
       avoid shadowed `name' global variable
       
       by Augustin Fabre <augustin@augfab.fr>
       
       Diffstat:
         M stagit.c                            |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git 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;
        }