From 547272e66c96e53fbb550bff5582e5b2fea2c3b6 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 7 Jan 2015 15:38:57 +0100 Subject: [PATCH] ntp: use different value for invalid socket in ntp_core This should make it easier to see invalid sockets leaking from ntp_core to ntp_io. --- ntp_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index 7455981..8781427 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -225,7 +225,8 @@ static ARR_Instance broadcasts; /* Maximum poll interval set by KoD RATE */ #define MAX_KOD_RATE_POLL SRC_DEFAULT_MAXPOLL -#define INVALID_SOCK_FD -1 +/* Invalid socket, different from the one in ntp_io.c */ +#define INVALID_SOCK_FD -2 /* ================================================== */