summaryrefslogtreecommitdiff
path: root/ntpsnmpd/ntpsnmpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpsnmpd/ntpsnmpd.c')
-rw-r--r--ntpsnmpd/ntpsnmpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpsnmpd/ntpsnmpd.c b/ntpsnmpd/ntpsnmpd.c
index 278d5a86e170..d96ad3af453b 100644
--- a/ntpsnmpd/ntpsnmpd.c
+++ b/ntpsnmpd/ntpsnmpd.c
@@ -85,7 +85,7 @@ main (int argc, char **argv) {
init_agent("ntpsnmpd");
/* Try to connect to ntpd */
- if ( ntpq_openhost("localhost") == 0 )
+ if ( ntpq_openhost("localhost", 0) == 0 )
{
fprintf(stderr, "Error: Could not connect to ntpd. Aborting.\n");
exit(1);