diff options
Diffstat (limited to 'plugins/check_ntp_peer.c')
| -rw-r--r-- | plugins/check_ntp_peer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index e489a580..17876dd8 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
| @@ -162,7 +162,7 @@ void print_ntp_control_message(const ntp_control_message *p){ | |||
| 162 | if(p->op&REM_RESP && p->op&OP_READSTAT){ | 162 | if(p->op&REM_RESP && p->op&OP_READSTAT){ |
| 163 | peer=(ntp_assoc_status_pair*)p->data; | 163 | peer=(ntp_assoc_status_pair*)p->data; |
| 164 | for(i=0;i<numpeers;i++){ | 164 | for(i=0;i<numpeers;i++){ |
| 165 | printf("\tpeer id %.2x status %.2x", | 165 | printf("\tpeer id %.2x status %.2x", |
| 166 | ntohs(peer[i].assoc), ntohs(peer[i].status)); | 166 | ntohs(peer[i].assoc), ntohs(peer[i].status)); |
| 167 | if (PEER_SEL(peer[i].status) >= PEER_INCLUDED){ | 167 | if (PEER_SEL(peer[i].status) >= PEER_INCLUDED){ |
| 168 | if(PEER_SEL(peer[i].status) >= PEER_SYNCSOURCE){ | 168 | if(PEER_SEL(peer[i].status) >= PEER_SYNCSOURCE){ |
| @@ -477,7 +477,7 @@ int process_arguments(int argc, char **argv){ | |||
| 477 | {0, 0, 0, 0} | 477 | {0, 0, 0, 0} |
| 478 | }; | 478 | }; |
| 479 | 479 | ||
| 480 | 480 | ||
| 481 | if (argc < 2) | 481 | if (argc < 2) |
| 482 | usage ("\n"); | 482 | usage ("\n"); |
| 483 | 483 | ||
