]> git.sur5r.net Git - openocd/commitdiff
fileio: -Wshadow warning fix
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 15 Jun 2010 21:01:42 +0000 (23:01 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 15 Jun 2010 21:01:42 +0000 (23:01 +0200)
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/helper/fileio.c

index 71e807ff7870a7aa4e992de1c7d42180acbb28b5..ba62397cc781d975e27354d6628821258d27fb66 100644 (file)
@@ -98,12 +98,12 @@ static inline int fileio_open_local(struct fileio *fileio)
        return ERROR_OK;
 }
 
-int fileio_open(struct fileio *fileio, const char *url, enum fileio_access access,     enum fileio_type type)
+int fileio_open(struct fileio *fileio, const char *url, enum fileio_access access_type,        enum fileio_type type)
 {
        int retval = ERROR_OK;
 
        fileio->type = type;
-       fileio->access = access;
+       fileio->access = access_type;
        fileio->url = strdup(url);
 
        retval = fileio_open_local(fileio);