From 8384da195d4bf87dd4f722c98b84f4e57d1ef33d Mon Sep 17 00:00:00 2001 From: frekky Date: Sat, 13 Feb 2016 22:58:30 +0800 Subject: [PATCH] Fixed systemd warning and compile error --- src/iodine.c | 2 +- src/iodined.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iodine.c b/src/iodine.c index ac6f079..1e95f00 100644 --- a/src/iodine.c +++ b/src/iodine.c @@ -376,7 +376,7 @@ main(int argc, char **argv) char *device = NULL; char *pidfile = NULL; - int remote_forward_port; + int remote_forward_port = 0; char *nameserv_host = NULL; struct sockaddr_storage nameservaddr; diff --git a/src/iodined.c b/src/iodined.c index 53166b2..396fe62 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -561,7 +561,7 @@ main(int argc, char **argv) goto cleanup; } else if (nb_fds == 1) { /* XXX: assume we get IPv4 socket */ - dns_fds.v4fd = SD_LISTEN_FDS_START; + server.dns_fds.v4fd = SD_LISTEN_FDS_START; } else { #endif if ((server.addrfamily == AF_UNSPEC || server.addrfamily == AF_INET) &&