Commit 07ab7337 authored by Christophe Massiot's avatar Christophe Massiot

* util.c: Fix incorrect socket type due to incorrect hints.

parent 7af799fb
......@@ -48,8 +48,8 @@
#include "util.h"
#define POLL_TIMEOUT 1000 /* 1 s */
#define MAX_LATENESS 27000000LL /* 1 s */
#define FILE_FLUSH 27000000LL /* 1 s */
#define MAX_LATENESS INT64_C(27000000) /* 1 s */
#define FILE_FLUSH INT64_C(27000000) /* 1 s */
/*****************************************************************************
* Local declarations
......
......@@ -335,7 +335,7 @@ static struct addrinfo *ParseNodeService( char *_psz_string, char **ppsz_end,
hint.ai_socktype = SOCK_DGRAM;
hint.ai_protocol = 0;
hint.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV | AI_ADDRCONFIG;
if ( (i_ret = getaddrinfo( psz_node, psz_port, NULL, &p_res )) != 0 )
if ( (i_ret = getaddrinfo( psz_node, psz_port, &hint, &p_res )) != 0 )
{
//msg_Warn( NULL, "getaddrinfo error: %s", gai_strerror(i_ret) );
free( psz_string );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment