X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcheck_ntp.c;fp=plugins%2Fcheck_ntp.c;h=489ad60aafb5016108bc8a986f432e8c8668d5ed;hb=16f53e0717b60660145388b0feb351628f606211;hp=68c82d1154655907b4b7e8df8221d8b1de1e2594;hpb=53058522125ef86a65c241ad0a5f56df01d55d6a;p=nagiosplug.git diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 68c82d1..489ad60 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -198,7 +198,7 @@ typedef struct { /* NTP control message header is 12 bytes, plus any data in the data * field, plus null padding to the nearest 32-bit boundary per rfc. */ -#define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((m.count)?4-(ntohs(m.count)%4):0)) +#define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((ntohs(m.count)%4)?4-(ntohs(m.count)%4):0)) /* finally, a little helper or two for debugging: */ #define DBG(x) do{if(verbose>1){ x; }}while(0);