if(getaddrinfo(host, port, &hints, &res) || !res) {
if(verbose) {
- fprintf(stderr, "Cannot resolve %s port %s: %s", host, port, sockstrerror(sockerrno));
+ fprintf(stderr, "Cannot resolve %s port %s: %s\n", host, port, sockstrerror(sockerrno));
}
return false;
if(ioctlsocket(fd, FIONBIO, &arg) != 0) {
if(verbose) {
- fprintf(stderr, "ioctlsocket failed: %s", sockstrerror(sockerrno));
+ fprintf(stderr, "System call `%s' failed: %s\n", "ioctlsocket", sockstrerror(sockerrno));
}
}
#endif
// Pass all log messages from the umbilical to stderr.
- // A nul-byte right before closure means tincd started succesfully.
+ // A nul-byte right before closure means tincd started successfully.
bool failure = true;
char buf[1024];
ssize_t len;
buf[0] = 0;
if(!fgets(buf, sizeof(buf), f)) {
- fprintf(stderr, "Invalid invitation file %s", fname);
+ fprintf(stderr, "Invalid invitation file %s\n", fname);
fclose(f);
continue;
}
}
if(strncmp(buf, "Name = ", 7) || !check_id(buf + 7)) {
- fprintf(stderr, "Invalid invitation file %s", fname);
+ fprintf(stderr, "Invalid invitation file %s\n", fname);
continue;
}
}
}
- /* Change "add" into "set" for variables that do not allow multiple occurences.
+ /* Change "add" into "set" for variables that do not allow multiple occurrences.
Turn on warnings when it seems variables might be removed unintentionally. */
if(action == 1 && !(variables[i].type & VAR_MULTIPLE)) {