aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/akcom-udpechod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/akcom-udpechod.c')
-rw-r--r--src/akcom-udpechod.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/akcom-udpechod.c b/src/akcom-udpechod.c
index ea183bc..a344261 100644
--- a/src/akcom-udpechod.c
+++ b/src/akcom-udpechod.c
@@ -56,6 +56,11 @@
56/////////////// 56///////////////
57#pragma mark - Headers 57#pragma mark - Headers
58 58
59// defined in the Single UNIX Specification
60#ifndef _XOPEN_SOURCE
61# define _XOPEN_SOURCE 600
62#endif
63
59#ifdef HAVE_CONFIG_H 64#ifdef HAVE_CONFIG_H
60#include <config.h> 65#include <config.h>
61#endif 66#endif
@@ -575,7 +580,7 @@ my_daemonize(
575 my_debug("pidfile: %s", cnf_pidfile); 580 my_debug("pidfile: %s", cnf_pidfile);
576 581
577 // determines interface on which to listen 582 // determines interface on which to listen
578 bzero(&sa, sizeof(sa)); 583 memset(&sa, 0, sizeof(sa));
579 if (!(cnf_listen)) 584 if (!(cnf_listen))
580 { 585 {
581 sa.sin6.sin6_family = AF_INET6; 586 sa.sin6.sin6_family = AF_INET6;