summaryrefslogtreecommitdiffstats
path: root/proxy
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-06-04 11:04:00 -0400
committerGünther Deschner <gdeschner@redhat.com>2012-06-26 14:44:43 +0200
commitad4af48009656bd07f06bbed0551ad23f3882fb2 (patch)
tree03c68076fb8a14ca9656282b8e1c3c68a7071f90 /proxy
parente61bb19ae0019187fe43dac4eaf958de3e8c5513 (diff)
downloadgss-proxy-ad4af48009656bd07f06bbed0551ad23f3882fb2.tar.gz
gss-proxy-ad4af48009656bd07f06bbed0551ad23f3882fb2.tar.xz
gss-proxy-ad4af48009656bd07f06bbed0551ad23f3882fb2.zip
Add macro to suppress const warnings
Diffstat (limited to 'proxy')
-rw-r--r--proxy/src/gp_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h
index 981eb75..0de698c 100644
--- a/proxy/src/gp_common.h
+++ b/proxy/src/gp_common.h
@@ -29,6 +29,8 @@
#include "gp_debug.h"
#include "gp_log.h"
+#define no_const(ptr) ((void *)((uintptr_t)(ptr)))
+
/* add element to list head */
#define LIST_ADD(list, elem) do { \
elem->prev = NULL; \