From: Harlan Stenn Date: Tue, 11 Jan 2011 07:49:54 +0000 (+0000) Subject: cleanup X-Git-Tag: NTP_4_2_7P131~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=957cb72144e9504d47c1b9e17ba63893e42f32bc;p=thirdparty%2Fntp.git cleanup bk: 4d2c0ba2XyvHS0OktiXJN0HJlYp6Vw --- diff --git a/sntp/main.c b/sntp/main.c index 9c4ce1293..083e5bbeb 100644 --- a/sntp/main.c +++ b/sntp/main.c @@ -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