Ticket #46968: patch-src-http.c.diff
File patch-src-http.c.diff, 467 bytes (added by janstary (Jan Starý), 10 years ago) |
---|
-
src/http.c
old new static struct addrinfo *op_resolve(const 721 721 char service[6]; 722 722 memset(&hints,0,sizeof(hints)); 723 723 hints.ai_socktype=SOCK_STREAM; 724 #if !defined(_WIN32)725 hints.ai_flags=AI_NUMERICSERV;726 #endif727 724 OP_ASSERT(_port<=65535U); 728 725 sprintf(service,"%u",_port); 729 726 if(OP_LIKELY(!getaddrinfo(_host,service,&hints,&addrs)))return addrs;