Browse Source

avoid struct stat

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43074 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 years ago
parent
commit
1e4e67d062
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lib/vector/Vlib/cindex.c

+ 1 - 2
lib/vector/Vlib/cindex.c

@@ -490,7 +490,6 @@ int Vect_cidx_open(struct Map_info *Map, int head_only)
     char buf[500], file_path[2000];
     struct gvfile fp;
     struct Plus_head *Plus;
-    struct stat info;
 
     G_debug(2, "Vect_cidx_open(): name = %s mapset= %s", Map->name,
 	    Map->mapset);
@@ -500,7 +499,7 @@ int Vect_cidx_open(struct Map_info *Map, int head_only)
     sprintf(buf, "%s/%s", GV_DIRECTORY, Map->name);
     G__file_name(file_path, buf, GV_CIDX_ELEMENT, Map->mapset);
 
-    if (stat(file_path, &info) != 0)	/* does not exist */
+    if (access(file_path, F_OK) != 0)	/* does not exist */
 	return 1;