Mercurial > noffle
diff src/fetchlist.c @ 61:adf0af5152f7 noffle
[svn] Renamed some variables and function names, because they caused compiler
warnings because of shadowing global variables from system include files
(index, stat, serv).
author | enz |
---|---|
date | Fri, 12 May 2000 18:19:38 +0100 |
parents | 125d79c9e586 |
children | 53cfa011a08c |
line wrap: on
line diff
--- a/src/fetchlist.c Fri May 12 17:52:58 2000 +0100 +++ b/src/fetchlist.c Fri May 12 18:19:38 2000 +0100 @@ -1,7 +1,7 @@ /* fetchlist.c - $Id: fetchlist.c 60 2000-05-09 22:28:38Z uh1763 $ + $Id: fetchlist.c 67 2000-05-12 17:19:38Z enz $ */ #if HAVE_CONFIG_H @@ -176,12 +176,12 @@ } Bool -Fetchlist_element( const char **name, FetchMode *mode, int index ) +Fetchlist_element( const char **name, FetchMode *mode, int idx ) { - if ( index < 0 || index >= fetchlist.size ) + if ( idx < 0 || idx >= fetchlist.size ) return FALSE; - *name = fetchlist.elem[ index ].name; - *mode = fetchlist.elem[ index ].mode; + *name = fetchlist.elem[ idx ].name; + *mode = fetchlist.elem[ idx ].mode; return TRUE; }