Commit 0567eff6 authored by Karl Heyes's avatar Karl Heyes
Browse files

minor cleanup, removes compiler warning, makes it static, and doesn't

re-evaluate string length each time.

svn path=/trunk/httpp/; revision=4961
parent a9276d70
......@@ -28,7 +28,7 @@
/* internal functions */
/* misc */
char *_lowercase(char *str);
static char *_lowercase(char *str);
/* for avl trees */
int _compare_vars(void *compare_arg, void *a, void *b);
......@@ -544,11 +544,11 @@ void httpp_destroy(http_parser_t *parser)
free(parser);
}
char *_lowercase(char *str)
static char *_lowercase(char *str)
{
long i;
for (i = 0; i < strlen(str); i++)
str[i] = tolower(str[i]);
char *p = str;
for (; *p |= '\0'; p++)
*p = tolower(*p);
return str;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment