projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve proxy server support
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
4a3682f
..
9b39f2c
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-612,7
+612,7
@@
static void pcap(int fd, FILE *out, uint32_t snaplen) {
}
}
}
}
-static void logcontrol(int fd, FILE *out, int level) {
+static void log
_
control(int fd, FILE *out, int level) {
sendline(fd, "%d %d %d", CONTROL, REQ_LOG, level);
char data[1024];
char line[32];
sendline(fd, "%d %d %d", CONTROL, REQ_LOG, level);
char data[1024];
char line[32];
@@
-1518,7
+1518,7
@@
static int cmd_log(int argc, char *argv[]) {
signal(SIGINT, sigint_handler);
#endif
signal(SIGINT, sigint_handler);
#endif
- log
control(fd, stdout, argc > 1 ? atoi(argv[1]) : -1
);
+ log
_control(fd, stdout, argc > 1 ? atoi(argv[1]) : DEBUG_UNSET
);
#ifdef SIGINT
signal(SIGINT, SIG_DFL);
#ifdef SIGINT
signal(SIGINT, SIG_DFL);