From: bert hubert Date: Thu, 11 Feb 2016 10:12:32 +0000 (+0100) Subject: make calidns print syntax if invoked incorrectly X-Git-Tag: auth-4.0.0-alpha2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5955f7a859a0e48c21d27963757779f556196ad;p=thirdparty%2Fpdns.git make calidns print syntax if invoked incorrectly --- diff --git a/pdns/calidns.cc b/pdns/calidns.cc index 47999d4e58..71165db5a7 100644 --- a/pdns/calidns.cc +++ b/pdns/calidns.cc @@ -135,6 +135,10 @@ try struct sched_param param; param.sched_priority=99; + if(argc != 4) { + cerr<<"Syntax: calidns file-with-queries destination qps-goal"<