* to point to the next char after it. Otherwise, *STRINGP is set to NULL.
* If *STRINGP was already NULL, nothing happens.
* Returns the old value of *STRINGP.
- *
+ *
*\par
* This is a variant of strtok() that is multithread-safe and supports
* empty fields.
- *
+ *
* \note Caveat: It modifies the original string.
* \note Caveat: These functions cannot be used on constant strings.
* \note Caveat: The identity of the delimiting character is lost.
* \note Caveat: It doesn't work with multibyte strings unless all of the delimiter
* characters are ASCII characters < 0x30.
- *
+ *
* See also strtok_r().
*/
SQUIDCEXTERN char *strsep(char **stringp, const char *delim);
/**
*\par
* Convert a string to a int64 integer.
- *
+ *
*\par
* Ignores `locale' stuff. Assumes that the upper and lower case
* alphabets and digits are each contiguous.
hres_list = hres_list->ai_next;
}
rc = getnameinfo(hres->ai_addr, hres->ai_addrlen, hostname,
- sizeof(hostname), NULL, 0, 0);
+ sizeof(hostname), NULL, 0, 0);
if (rc != 0) {
fprintf(stderr,
"%s| %s: ERROR: resolving ip address with getnameinfo: %s failed\n",
#endif
default:
if (inet_ntop(afd->a_af, addr, host,
- hostlen) == NULL)
+ hostlen) == NULL)
return EAI_SYSTEM;
break;
}
if ((s = socket(AI->ai_family, AI->ai_socktype, AI->ai_protocol)) < 0) {
perror("socket");
- s = -1;
- }
- else if (connect(s, AI->ai_addr, AI->ai_addrlen) < 0) {
+ s = -1;
+ } else if (connect(s, AI->ai_addr, AI->ai_addrlen) < 0) {
close(s);
perror("connect");
s = -1;