Fixed warnings

Moved to 2.7
This commit is contained in:
Luca Deri 2020-03-24 10:09:39 +01:00
parent d8871c2a60
commit b73f146d9b
3 changed files with 8 additions and 2 deletions

View File

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

2
edge.c
View File

@ -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
/* *************************************************** */

4
sn.c
View File

@ -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
/* *************************************************** */