index 49a4d8792c5c1aa991d412dd4a95dcaea4d8c8fd..77819c217b6e8ae1272415974f88480ab17710b0 100644 (file)
_b[sizeof (_b) - 1] = 0; \
SSTRCAT ((d), _b); \
} while (0)
_b[sizeof (_b) - 1] = 0; \
SSTRCAT ((d), _b); \
} while (0)
-
+
#define LCC_SET_ERRSTR(c, ...) do { \
snprintf ((c)->errbuf, sizeof ((c)->errbuf), __VA_ARGS__); \
#define LCC_SET_ERRSTR(c, ...) do { \
snprintf ((c)->errbuf, sizeof ((c)->errbuf), __VA_ARGS__); \
* beginning of the message. */
ptr = NULL;
errno = 0;
* beginning of the message. */
ptr = NULL;
errno = 0;
- res.status = strtol (buffer, &ptr, 0);
+ res.status = (int) strtol (buffer, &ptr, 0);
if ((errno != 0) || (ptr == &buffer[0]))
{
lcc_set_errno (c, errno);
if ((errno != 0) || (ptr == &buffer[0]))
{
lcc_set_errno (c, errno);
if (fd < 0)
{
status = errno;
if (fd < 0)
{
status = errno;
- fd = -1;
continue;
}
continue;
}
{
status = errno;
close (fd);
{
status = errno;
close (fd);
- fd = -1;
continue;
}
continue;
}
{
status = errno;
close (fd);
{
status = errno;
close (fd);
- fd = -1;
continue;
}
continue;
}
if (status != 0)
{
lcc_set_errno (c, status);
if (status != 0)
{
lcc_set_errno (c, status);
+ freeaddrinfo (ai_res);
return (-1);
}
return (-1);
}
+ freeaddrinfo (ai_res);
return (0);
} /* }}} int lcc_open_netsocket */
return (0);
} /* }}} int lcc_open_netsocket */