From: Ruben d'Arco Date: Mon, 22 Jul 2013 19:31:51 +0000 (+0200) Subject: Intending X-Git-Tag: rec-3.6.0-rc1~547^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7efa8ff76b5480e26e0a4d428b003aad8cd25ee;p=thirdparty%2Fpdns.git Intending --- diff --git a/pdns/arguments.cc b/pdns/arguments.cc index 846b27d6cd..bbad995e53 100644 --- a/pdns/arguments.cc +++ b/pdns/arguments.cc @@ -146,25 +146,22 @@ string ArgvMap::configstring(bool current) else help="# Autogenerated configuration file template\n"; - for(map::const_iterator i=helpmap.begin(); - i!=helpmap.end(); - i++) - { - if(d_typeMap[i->first]=="Command") - continue; + for(map::const_iterator i=helpmap.begin(); i!=helpmap.end(); i++) { + if(d_typeMap[i->first]=="Command") + continue; - help+="#################################\n"; - help+="# "; - help+=i->first; - help+="\t"; - help+=i->second; - help+="\n#\n"; - if (current) { - help+=i->first+"="+params[i->first]+"\n\n"; - } else { - help+="# "+i->first+"="+params[i->first]+"\n\n"; - } + help+="#################################\n"; + help+="# "; + help+=i->first; + help+="\t"; + help+=i->second; + help+="\n#\n"; + if (current) { + help+=i->first+"="+params[i->first]+"\n\n"; + } else { + help+="# "+i->first+"="+params[i->first]+"\n\n"; } + } return help; } diff --git a/pdns/dynlistener.cc b/pdns/dynlistener.cc index 51586640a4..d70e5d724d 100644 --- a/pdns/dynlistener.cc +++ b/pdns/dynlistener.cc @@ -246,7 +246,7 @@ string DynListener::getLine() errno=0; if(!fgets(&mesg[0], mesg.size(), fp.get())) { if(errno) - L<first)+" "+i->second.args) % i->second.usage)); } sort(funcs.begin(), funcs.end()); @@ -388,5 +382,4 @@ string DynListener::getHelp() // hack: this removes the duplicate quit method funcs.resize(unique(funcs.begin(), funcs.end()) - funcs.begin()); return boost::join(funcs, "\n"); -} - +} \ No newline at end of file