1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-16 06:15:24 +00:00

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

re-evaluate string length each time.

svn path=/trunk/httpp/; revision=4961
This commit is contained in:
Karl Heyes 2003-06-18 11:13:11 +00:00
parent 6ce5ec2b0d
commit 5408558756

View File

@ -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;
}