From b73f146d9b21dfd329601bf7b5bdfd665c68f2e7 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 24 Mar 2020 10:09:39 +0100 Subject: [PATCH] Fixed warnings Moved to 2.7 --- autogen.sh | 4 ++-- edge.c | 2 ++ sn.c | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 1a9cf4e..8036442 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,8 +2,8 @@ # NOTE: update version in CMakeLists.txt after changing these N2N_MAJOR="2" -N2N_MINOR="5" -N2N_PATCH="1" +N2N_MINOR="7" +N2N_PATCH="0" N2N_VERSION_SHORT="$N2N_MAJOR.$N2N_MINOR.$N2N_PATCH" diff --git a/edge.c b/edge.c index 0567f8f..19891de 100644 --- a/edge.c +++ b/edge.c @@ -598,6 +598,7 @@ static void daemonize() { static int keep_on_running; +#ifdef __linux__ #ifdef WIN32 BOOL WINAPI term_handler(DWORD sig) #else @@ -619,6 +620,7 @@ static void term_handler(int sig) return(TRUE); #endif } +#endif /* *************************************************** */ diff --git a/sn.c b/sn.c index b39ca11..43e8841 100644 --- a/sn.c +++ b/sn.c @@ -913,6 +913,7 @@ static int loadFromFile(const char *path, n2n_sn_t *sss) { /* *************************************************** */ +#ifdef __linux__ static void dump_registrations(int signo) { struct sn_community *comm, *ctmp; struct peer_info *list, *tmp; @@ -941,11 +942,13 @@ static void dump_registrations(int signo) { traceEvent(TRACE_NORMAL, "===================================="); } +#endif /* *************************************************** */ static int keep_running; +#ifdef __linux__ #ifdef WIN32 BOOL WINAPI term_handler(DWORD sig) #else @@ -967,6 +970,7 @@ static void term_handler(int sig) return(TRUE); #endif } +#endif /* *************************************************** */