summaryrefslogtreecommitdiff
path: root/lib/getenv.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-14 08:25:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-14 08:25:47 +0000
commit9a7fc9ce3aef1663f94f0c88d6f35fe2ec0c2d40 (patch)
tree95af3d18fa54790d87b272e0b9c891a1b114322b /lib/getenv.c
parent9fa464aa94abc4bfdaa87675d94c4175d8c151fb (diff)
downloadcurl-9a7fc9ce3aef1663f94f0c88d6f35fe2ec0c2d40.tar.gz
added const to the function protos
Diffstat (limited to 'lib/getenv.c')
-rw-r--r--lib/getenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getenv.c b/lib/getenv.c
index 1a34f57f7..91f3f7bd7 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);
}