added const to the function protos
authorDaniel Stenberg <daniel@haxx.se>
Tue, 14 Aug 2001 08:25:47 +0000 (08:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 14 Aug 2001 08:25:47 +0000 (08:25 +0000)
lib/getenv.c

index 1a34f57..91f3f7b 100644 (file)
@@ -38,7 +38,7 @@
 #endif
 
 static
-char *GetEnv(char *variable)
+char *GetEnv(const char *variable)
 {
 #ifdef WIN32
   /* This shit requires windows.h (HUGE) to be included */
@@ -62,7 +62,7 @@ char *GetEnv(char *variable)
   return (env && env[0])?strdup(env):NULL;
 }
 
-char *curl_getenv(char *v)
+char *curl_getenv(const char *v)
 {
   return GetEnv(v);
 }