- hint.ai_family = addressfamily;
-
- hint.ai_socktype = SOCK_STREAM;
-
- hint.ai_protocol = IPPROTO_TCP;
-
- hint.ai_flags = AI_PASSIVE;
+ struct addrinfo hint = {
+ .ai_family = addressfamily,
+ .ai_socktype = SOCK_STREAM,
+ .ai_protocol = IPPROTO_TCP,
+ .ai_flags = AI_PASSIVE,
+ };