aboutsummaryrefslogtreecommitdiffstats
path: root/include/debug.h
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2016-09-21 08:22:35 +0200
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2016-09-21 08:22:35 +0200
commit0e0943c15b173015c3ff9475085bd064204f9c74 (patch)
tree8ac5531bc2d5229d31184551a66655f36b8e2fae /include/debug.h
parent6f9377ab8159bf52e52ec41c32fbfd47401a254e (diff)
downloadutil-linux-0e0943c15b173015c3ff9475085bd064204f9c74.tar.gz
debug: use const void * for ul_debugobj()
We don't modify data it's pointing out and we should not modify it. Also remove casting to void * as gcc will do it automatically (before we had to cast it explicitly to avoid warning on discarding 'const' qualifier). Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/debug.h b/include/debug.h
index 45c1caadea..97c0e1f086 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -105,7 +105,7 @@ ul_debug(const char *mesg, ...)
}
static inline void __attribute__ ((__format__ (__printf__, 2, 3)))
-ul_debugobj(void *handler, const char *mesg, ...)
+ul_debugobj(const void *handler, const char *mesg, ...)
{
va_list ap;