From: Yoshitaka Aharen Date: Wed, 29 May 2013 04:48:44 +0000 (+0900) Subject: [2796] compare with a constant instead of a magic number X-Git-Tag: bind10-1.2.0beta1-release~409^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89b1ca9494abdcaf3ef2beec3fcb015b3328fea7;p=thirdparty%2Fkea.git [2796] compare with a constant instead of a magic number --- diff --git a/src/bin/auth/statistics.cc.pre b/src/bin/auth/statistics.cc.pre index 6caca00b2e..ec39db6a4a 100644 --- a/src/bin/auth/statistics.cc.pre +++ b/src/bin/auth/statistics.cc.pre @@ -142,7 +142,7 @@ Counters::incRequest(const MessageAttributes& msgattrs) { server_msg_counter_.inc(opcode_to_msgcounter[code]); // Opcode = 0: Query - if (code == 0) { + if (code == Opcode::QUERY_CODE) { // Recursion Desired bit if (msgattrs.requestHasRD()) { server_msg_counter_.inc(MSG_QRYRECURSION);