1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-10-06 04:45:08 -04: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 a4d20515f1
commit 032ad5d9ff

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