projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix all spelling errors found by codespell.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
4803d6c
..
99f31b8
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-842,7
+842,7
@@
bool connect_tincd(bool verbose) {
if(getaddrinfo(host, port, &hints, &res) || !res) {
if(verbose) {
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;
}
return false;
@@
-863,7
+863,7
@@
bool connect_tincd(bool verbose) {
if(ioctlsocket(fd, FIONBIO, &arg) != 0) {
if(verbose) {
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));
}
}
}
}
@@
-1013,7
+1013,7
@@
static int cmd_start(int argc, char *argv[]) {
#endif
// Pass all log messages from the umbilical to stderr.
#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 succes
s
fully.
bool failure = true;
char buf[1024];
ssize_t len;
bool failure = true;
char buf[1024];
ssize_t len;
@@
-1157,7
+1157,7
@@
static int dump_invitations(void) {
buf[0] = 0;
if(!fgets(buf, sizeof(buf), f)) {
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;
}
fclose(f);
continue;
}
@@
-1171,7
+1171,7
@@
static int dump_invitations(void) {
}
if(strncmp(buf, "Name = ", 7) || !check_id(buf + 7)) {
}
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;
}
continue;
}
@@
-1859,7
+1859,7
@@
static int cmd_config(int argc, char *argv[]) {
}
}
}
}
- /* Change "add" into "set" for variables that do not allow multiple occurences.
+ /* Change "add" into "set" for variables that do not allow multiple occur
r
ences.
Turn on warnings when it seems variables might be removed unintentionally. */
if(action == 1 && !(variables[i].type & VAR_MULTIPLE)) {
Turn on warnings when it seems variables might be removed unintentionally. */
if(action == 1 && !(variables[i].type & VAR_MULTIPLE)) {