]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1924] Use constant for the error code too
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 6 Feb 2013 13:53:31 +0000 (14:53 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 6 Feb 2013 13:53:31 +0000 (14:53 +0100)
src/bin/msgq/msgq.py.in
src/lib/util/common_defs.cc

index 8517877786aa20cd740074b8d857f49425e4ab78..407c408c3c3095593d7818c00c216e1d8a6e9017 100755 (executable)
@@ -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
index b8f952931c8250cfa4da40e2e41c8bbae5593ece..f3b195a50514f01d414b887b76749239925295c1 100644 (file)
@@ -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
 
 }
 }