summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/io.c2
-rw-r--r--sysdep/unix/log.c3
-rw-r--r--sysdep/unix/wg_user.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index a31546ee..67e0f50a 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -1526,7 +1526,7 @@ static void hexdump(const char *data, socklen_t size)
{
char buf[1024]="";
- for (int i = 0; i < size; i++)
+ for (unsigned int i = 0; i < size; i++)
{
sprintf(buf + i*3, "%02x ", data[i]);
}
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index e24322c6..68350141 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -342,6 +342,7 @@ default_log_list(int initial, const char **syslog_name)
if (!dbgf)
{
static struct log_config lc_syslog = { .mask = ~0 };
+ memset(&lc_syslog.n, 0, sizeof(lc_syslog.n));
add_tail(&log_list, &lc_syslog.n);
*syslog_name = bird_name;
}
@@ -351,6 +352,7 @@ default_log_list(int initial, const char **syslog_name)
{
static struct log_config lc_debug = { .mask = ~0 };
lc_debug.fh = dbgf;
+ memset(&lc_debug.n, 0, sizeof(lc_debug.n));
add_tail(&log_list, &lc_debug.n);
}
@@ -358,6 +360,7 @@ default_log_list(int initial, const char **syslog_name)
{
static struct log_config lc_stderr = { .mask = ~0, .terminal_flag = 1};
lc_stderr.fh = stderr;
+ memset(&lc_stderr.n, 0, sizeof(lc_stderr.n));
add_tail(&log_list, &lc_stderr.n);
}
diff --git a/sysdep/unix/wg_user.c b/sysdep/unix/wg_user.c
index 4f0dba24..447e4ecd 100644
--- a/sysdep/unix/wg_user.c
+++ b/sysdep/unix/wg_user.c
@@ -1,3 +1,5 @@
+#define LOCAL_DEBUG
+
#include <stdio.h>
#include <stdbool.h>
#include <sys/stat.h>