if (service_name == NULL)
return (-1);
- ai_list = NULL;
-
struct addrinfo ai_hints = {
.ai_family = AF_UNSPEC
};
}
}
- ai_res = NULL;
-
struct addrinfo ai_hints = {
.ai_family = AF_UNSPEC,
.ai_flags = AI_ADDRCONFIG,
static int server_open_socket (lcc_server_t *srv) /* {{{ */
{
- struct addrinfo *ai_list = NULL;
+ struct addrinfo *ai_list;
struct addrinfo *ai_ptr;
int status;
host = (st->host != NULL) ? st->host : MEMCACHED_DEF_HOST;
port = (st->port != NULL) ? st->port : MEMCACHED_DEF_PORT;
- ai_list = NULL;
-
struct addrinfo ai_hints = {
.ai_family = AF_UNSPEC,
.ai_flags = AI_ADDRCONFIG,
if ((host == NULL) || (address == NULL))
return (EINVAL);
- ai_list = NULL;
-
struct addrinfo ai_hints = {
/* XXX: libmodbus can only handle IPv4 addresses. */
.ai_family = AF_INET,
static c_complain_t complaint = C_COMPLAIN_INIT_STATIC;
struct sockent_client *client;
- struct addrinfo *ai_list = NULL, *ai_ptr;
+ struct addrinfo *ai_list, *ai_ptr;
int status;
_Bool reconnect = 0;
cdtime_t now;
FILE *fh;
- ai_list = NULL;
-
struct addrinfo ai_hints = {
.ai_family = PF_UNSPEC,
.ai_flags = AI_ADDRCONFIG,
if (service == NULL)
service = PINBA_DEFAULT_SERVICE;
- ai_list = NULL;
-
struct addrinfo ai_hints = {
.ai_family = AF_UNSPEC,
.ai_flags = AI_PASSIVE,
struct pollfd *fds = NULL;
size_t fds_num = 0;
- struct addrinfo *ai_list = NULL;
+ struct addrinfo *ai_list;
struct addrinfo *ai_ptr;
int status;
else
ai_hints.ai_socktype = SOCK_DGRAM;
- ai_list = NULL;
-
status = getaddrinfo (cb->node, cb->service, &ai_hints, &ai_list);
if (status != 0)
{
if (cb->sock_fd > 0)
return 0;
- ai_list = NULL;
-
struct addrinfo ai_hints = {
.ai_family = AF_UNSPEC,
.ai_flags = AI_ADDRCONFIG,