Fixed systemd warning and compile error

This commit is contained in:
frekky 2016-02-13 22:58:30 +08:00
parent 6f43791ebc
commit 8384da195d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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) &&