]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
cleanup
authorHarlan Stenn <stenn@ntp.org>
Tue, 11 Jan 2011 07:49:54 +0000 (07:49 +0000)
committerHarlan Stenn <stenn@ntp.org>
Tue, 11 Jan 2011 07:49:54 +0000 (07:49 +0000)
bk: 4d2c0ba2XyvHS0OktiXJN0HJlYp6Vw

sntp/main.c

index 9c4ce1293476bb8cdbe314fec1e1f6c6caf0e8b9..083e5bbeb8a2f3167b9f3ecc1a41cb0da6c46435 100644 (file)
@@ -111,6 +111,11 @@ sntp_main (
        if (HAVE_OPT(FILELOG))
                open_logfile(OPT_ARG(FILELOG));
 
+       if (0 == argc && !HAVE_OPT(BROADCAST) && !HAVE_OPT(CONCURRENT)) {
+               printf("%s: Must supply at least one of -b hostname, -c hostname, or hostname.\n", progname);
+               exit(EX_USAGE);
+       }
+
        /*
        ** Eventually, we probably want:
        ** - separate bcst and ucst timeouts