/* We just try the first host, and if it is down we return zero */
if ((memcached_connect(instance)) != MEMCACHED_SUCCESS)
{
- return EXIT_SUCCESS;
+ return 0;
}
if (memcached_io_wait_for_write(instance) != MEMCACHED_SUCCESS)
{
- return EXIT_SUCCESS;
+ return 0;
}
if (getsockopt(instance->fd, SOL_SOCKET, SO_SNDBUF, &sock_size, &sock_length) < 0)
{
ptr->cached_errno= errno;
- return EXIT_SUCCESS; /* Zero means error */
+ return 0; /* Zero means error */
}
}
/* We just try the first host, and if it is down we return zero */
if ((memcached_connect(instance)) != MEMCACHED_SUCCESS)
{
- return EXIT_SUCCESS;
+ return 0;
}
if (memcached_io_wait_for_write(instance) != MEMCACHED_SUCCESS)
{
- return EXIT_SUCCESS;
+ return 0;
}
if (getsockopt(instance->fd, SOL_SOCKET, SO_RCVBUF, &sock_size, &sock_length) < 0)
{
ptr->cached_errno= errno;
- return EXIT_SUCCESS; /* Zero means error */
+ return 0; /* Zero means error */
}
}
case MEMCACHED_BEHAVIOR_MAX:
default:
WATCHPOINT_ASSERT(0); /* Programming mistake if it gets this far */
- return EXIT_SUCCESS;
+ return 0;
}
/* NOTREACHED */