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