From: Michal 'vorner' Vaner Date: Wed, 6 Feb 2013 13:53:31 +0000 (+0100) Subject: [1924] Use constant for the error code too X-Git-Tag: bind10-1.1.0beta1-release~104^2~22^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=070dcf030b13bc1b3e356e4f2313e1f6bbfda0e0;p=thirdparty%2Fkea.git [1924] Use constant for the error code too --- diff --git a/src/bin/msgq/msgq.py.in b/src/bin/msgq/msgq.py.in index 8517877786..407c408c3c 100755 --- a/src/bin/msgq/msgq.py.in +++ b/src/bin/msgq/msgq.py.in @@ -563,7 +563,7 @@ class MsgQ: # negative errors for delivery errors to distinguish them a # little. We probably should have a way to provide more data # in the error message. - payload = isc.config.ccsession.create_answer(-1, + payload = isc.config.ccsession.create_answer(CC_REPLY_NO_RECPT, "No such recipient") # We create the header based on the current one. But we don't # want to mangle it for the caller, so we get a copy. A shallow diff --git a/src/lib/util/common_defs.cc b/src/lib/util/common_defs.cc index b8f952931c..f3b195a505 100644 --- a/src/lib/util/common_defs.cc +++ b/src/lib/util/common_defs.cc @@ -37,6 +37,8 @@ const char* CC_COMMAND_SEND = "send"; // The wildcards of some headers const char* CC_TO_WILDCARD = "*"; const char* CC_INSTANCE_WILDCARD = "*"; +// Reply codes +const int CC_REPLY_NO_RECPT = -1; // No recipient } }