From: Daniel Stenberg Date: Tue, 14 Aug 2001 08:25:47 +0000 (+0000) Subject: added const to the function protos X-Git-Tag: curl-7_8_1~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a7fc9ce3aef1663f94f0c88d6f35fe2ec0c2d40;p=thirdparty%2Fcurl.git added const to the function protos --- diff --git a/lib/getenv.c b/lib/getenv.c index 1a34f57f78..91f3f7bd75 100644 --- a/lib/getenv.c +++ b/lib/getenv.c @@ -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); }