diff options
Diffstat (limited to 'plugins/check_ntp_peer.c')
| -rw-r--r-- | plugins/check_ntp_peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 3add2737..e489a580 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
| @@ -131,7 +131,7 @@ typedef struct { | |||
| 131 | /* NTP control message header is 12 bytes, plus any data in the data | 131 | /* NTP control message header is 12 bytes, plus any data in the data |
| 132 | * field, plus null padding to the nearest 32-bit boundary per rfc. | 132 | * field, plus null padding to the nearest 32-bit boundary per rfc. |
| 133 | */ | 133 | */ |
| 134 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((m.count)?4-(ntohs(m.count)%4):0)) | 134 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((ntohs(m.count)%4)?4-(ntohs(m.count)%4):0)) |
| 135 | 135 | ||
| 136 | /* finally, a little helper or two for debugging: */ | 136 | /* finally, a little helper or two for debugging: */ |
| 137 | #define DBG(x) do{if(verbose>1){ x; }}while(0); | 137 | #define DBG(x) do{if(verbose>1){ x; }}while(0); |
