--- deliantra/server/common/compat.C 2009/11/04 00:02:47 1.1 +++ deliantra/server/common/compat.C 2009/11/06 13:07:28 1.3 @@ -235,7 +235,7 @@ return path; } -void +static void path_normalize (char *path) { char *p; /* points to the beginning of the path not yet processed; this is @@ -316,31 +316,6 @@ return (path); } -char * -strcasestr_local (const char *s, const char *find) -{ - char c, sc; - size_t len; - - if ((c = *find++) != 0) - { - c = tolower (c); - len = strlen (find); - do - { - do - { - if ((sc = *s++) == 0) - return NULL; - } - while (tolower (sc) != c); - } - while (strncasecmp (s, find, len) != 0); - s--; - } - return (char *) s; -} - /** * open_and_uncompress() first searches for the original filename. If it exist, * then it opens it and returns the file-pointer. @@ -392,21 +367,6 @@ *dest = '\0'; } -const char * -strrstr (const char *haystack, const char *needle) -{ - const char *lastneedle; - - lastneedle = NULL; - while ((haystack = strstr (haystack, needle)) != NULL) - { - lastneedle = haystack; - haystack++; - } - return lastneedle; - -} - #define EOL_SIZE (sizeof("\n")-1) void strip_endline (char *buf)