projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Versione di debug funzionante, la salvo prima di rimuovere tutto per mettere
[gapil.git]
/
sources
/
SockAddr.c
diff --git
a/sources/SockAddr.c
b/sources/SockAddr.c
index 9a585ebdfed312d8dd3591d295470f0360dfef05..9c10fab34fc416c4f9e7cb097f7aaf120a7df6a9 100644
(file)
--- a/
sources/SockAddr.c
+++ b/
sources/SockAddr.c
@@
-62,7
+62,12
@@
*/
int tcp_addr(char * address, char * service, struct sockaddr * sa)
{
- struct addrinfo hints;
+ struct addrinfo hints = {
+ ai_flag: AI_CANONNAME,
+ ai_family: PF_UNSPEC,
+ ai_socktype: SOCK_STREAM,
+ ai_protocol: 7
+ }
/* OK, exit */