diff --git a/src/websocket.c b/src/websocket.c index 5411520d82..80889217ef 100644 --- a/src/websocket.c +++ b/src/websocket.c @@ -57,6 +57,7 @@ #include "error.h" #include "gslist.h" #include "sha1.h" +#include "util.h" #include "xmalloc.h" /* *INDENT-OFF* */ @@ -350,24 +351,6 @@ escape_http_request (const char *src) { return dest; } -/* Make a string uppercase. - * - * On error the original string is returned. - * On success, the uppercased string is returned. */ -static char * -strtoupper (char *str) { - char *p = str; - if (str == NULL || *str == '\0') - return str; - - while (*p != '\0') { - *p = toupper ((int) *p); - p++; - } - - return str; -} - /* Chop n characters from the beginning of the supplied buffer. * * The new length of the string is returned. */