]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
QRVERBOSE: const parameter
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 17 May 2017 14:52:36 +0000 (16:52 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 17 May 2017 14:55:24 +0000 (16:55 +0200)
lib/layer.h

index 6eeac90a400b3d9410fcb3d4ae0f13698a72ac54..c3c28accea515507384edfb51babfd49bdbf2583 100644 (file)
@@ -23,7 +23,7 @@
  /** @internal Print a debug message related to resolution. */
  #define QRVERBOSE(query, cls, fmt, ...) WITH_VERBOSE { \
     unsigned _ind = 0; \
-    struct kr_query *q = (query); \
+    const struct kr_query *q = (query); \
     uint16_t _id = q ? q->id : 0; \
     for (; q; q = q->parent, _ind += 2); \
     kr_log_verbose("[%5hu][%s] %*s" fmt, _id, cls, _ind, "", ##  __VA_ARGS__); \