]> granicus.if.org Git - curl/commitdiff
better errno include and no extern
authorDaniel Stenberg <daniel@haxx.se>
Thu, 5 Dec 2002 19:39:17 +0000 (19:39 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 Dec 2002 19:39:17 +0000 (19:39 +0000)
src/main.c

index 31b7f0e7bd78a3e3ed9e506c89c493cd8109c399..992c3413ca615c939f46024429e8e0f36b54e6f2 100644 (file)
@@ -31,7 +31,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <ctype.h>
-#include <sys/errno.h>
+#include <errno.h>
 
 #include <curl/curl.h>
 
@@ -3051,7 +3051,6 @@ static int create_dir_hierarchy(char *outfile)
   char *outdup;
   char *dirbuildup;
   int result=0;
-  extern int errno;
   
   outdup = strdup(outfile);
   dirbuildup = malloc(sizeof(char) * strlen(outfile));