comparison 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
comparison
equal deleted inserted replaced
60:defaa632baae 61:adf0af5152f7
1 /* 1 /*
2 fetchlist.c 2 fetchlist.c
3 3
4 $Id: fetchlist.c 60 2000-05-09 22:28:38Z uh1763 $ 4 $Id: fetchlist.c 67 2000-05-12 17:19:38Z enz $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
174 { 174 {
175 return ( searchElem( name ) != NULL ); 175 return ( searchElem( name ) != NULL );
176 } 176 }
177 177
178 Bool 178 Bool
179 Fetchlist_element( const char **name, FetchMode *mode, int index ) 179 Fetchlist_element( const char **name, FetchMode *mode, int idx )
180 { 180 {
181 if ( index < 0 || index >= fetchlist.size ) 181 if ( idx < 0 || idx >= fetchlist.size )
182 return FALSE; 182 return FALSE;
183 *name = fetchlist.elem[ index ].name; 183 *name = fetchlist.elem[ idx ].name;
184 *mode = fetchlist.elem[ index ].mode; 184 *mode = fetchlist.elem[ idx ].mode;
185 return TRUE; 185 return TRUE;
186 } 186 }
187 187
188 Bool 188 Bool
189 Fetchlist_add( const char *name, FetchMode mode ) 189 Fetchlist_add( const char *name, FetchMode mode )