@@ -51,11 +51,11 @@ if (!of_mutex_new(&mutex)) @throw [OFInitializationFailedException exception]; } #endif -of_resolver_result_t** +of_resolver_result_t ** of_resolve_host(OFString *host, uint16_t port, int type) { of_resolver_result_t **ret, **retIter; of_resolver_result_t *results, *resultsIter; size_t count; @@ -173,11 +173,11 @@ addr->sin_addr.s_addr = s_addr; tmp->family = AF_INET; tmp->type = type; tmp->protocol = 0; - tmp->address = (struct sockaddr*)addr; + tmp->address = (struct sockaddr *)addr; #ifndef OF_WII tmp->addressLength = sizeof(*addr); #else tmp->addressLength = 8; #endif @@ -233,11 +233,11 @@ memcpy(&addrsIter->sin_addr.s_addr, *ip, he->h_length); resultsIter->family = he->h_addrtype; resultsIter->type = type; resultsIter->protocol = 0; - resultsIter->address = (struct sockaddr*)addrsIter; + resultsIter->address = (struct sockaddr *)addrsIter; resultsIter->addressLength = sizeof(*addrsIter); *retIter = resultsIter; } # ifdef OF_HAVE_THREADS @@ -308,20 +308,20 @@ @throw [OFLockFailedException exception]; @try { # endif if ((hostCString = inet_ntoa( - ((struct sockaddr_in*)(void*)address)->sin_addr)) == NULL) + ((struct sockaddr_in *)(void *)address)->sin_addr)) == NULL) @throw [OFAddressTranslationFailedException exceptionWithError: h_errno]; if (host != NULL) *host = [OFString stringWithUTF8String: hostCString]; if (port != NULL) *port = OF_BSWAP16_IF_LE( - ((struct sockaddr_in*)(void*)address)->sin_port); + ((struct sockaddr_in *)(void *)address)->sin_port); # if OF_HAVE_THREADS } @finally { if (!of_mutex_unlock(&mutex)) @throw [OFUnlockFailedException exception]; }