diff options
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r-- | plugins/check_ntp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
198 | /* NTP control message header is 12 bytes, plus any data in the data | 198 | /* NTP control message header is 12 bytes, plus any data in the data |
199 | * field, plus null padding to the nearest 32-bit boundary per rfc. | 199 | * field, plus null padding to the nearest 32-bit boundary per rfc. |
200 | */ | 200 | */ |
201 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((m.count)?4-(ntohs(m.count)%4):0)) | 201 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((ntohs(m.count)%4)?4-(ntohs(m.count)%4):0)) |
202 | 202 | ||
203 | /* finally, a little helper or two for debugging: */ | 203 | /* finally, a little helper or two for debugging: */ |
204 | #define DBG(x) do{if(verbose>1){ x; }}while(0); | 204 | #define DBG(x) do{if(verbose>1){ x; }}while(0); |