summaryrefslogtreecommitdiff
path: root/lib/escape.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-01 08:10:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-01 08:10:21 +0000
commit090b89cc76acfa0bb388a9eb425dfaa81f62b5ae (patch)
treedda4228af299fcdf4da891736c9837fabbcaf97e /lib/escape.c
parentf05d47ddd6d706dcda05504da8c90a111d53f67b (diff)
downloadcurl-090b89cc76acfa0bb388a9eb425dfaa81f62b5ae.tar.gz
Variable type cleanups to please the picky MIPSPro compiler.
Diffstat (limited to 'lib/escape.c')
-rw-r--r--lib/escape.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/escape.c b/lib/escape.c
index 18444d6a9..4466d4cc9 100644
--- a/lib/escape.c
+++ b/lib/escape.c
@@ -39,14 +39,15 @@
/* The last #include file should be: */
#include "memdebug.h"
-char *curl_escape(const char *string, int length)
+char *curl_escape(const char *string, int inlength)
{
- size_t alloc = (length?(size_t)length:strlen(string))+1;
+ size_t alloc = (inlength?(size_t)inlength:strlen(string))+1;
char *ns;
char *testing_ptr = NULL;
unsigned char in;
size_t newlen = alloc;
int strindex=0;
+ size_t length;
ns = malloc(alloc);
if(!ns)