@@ -14,10 +14,12 @@ * file. */ #include "config.h" +#define OF_HTTP_SERVER_M + #include #include #import "OFHTTPServer.h" #import "OFDataArray.h" @@ -138,11 +140,11 @@ static OF_INLINE OFString* normalized_key(OFString *key) { char *cString = strdup([key UTF8String]); - char *tmp = cString; + uint8_t *tmp = (uint8_t*)cString; BOOL firstLetter = YES; if (cString == NULL) @throw [OFOutOfMemoryException exceptionWithClass: nil @@ -463,11 +465,11 @@ didReceiveRequest: request]; if (reply == nil) { [self sendErrorAndClose: 500]; @throw [OFInvalidArgumentException - exceptionWithClass: [[server delegate] class] + exceptionWithClass: [(id)[server delegate] class] selector: @selector(server:didReceiveRequest:)]; } replyHeaders = [reply headers]; replyData = [reply data];