summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-06-04 11:04:00 -0400
committerSimo Sorce <simo@redhat.com>2012-08-31 16:26:38 -0400
commit798883aad353add2f9830e6e2c993ac804411639 (patch)
treeb652f90bce29526c7902b359e852c584ed22efd4
parentdc63375d2b35efb6e9b09bd42f4c2ae6c3c2f663 (diff)
downloadgss-proxy-798883aad353add2f9830e6e2c993ac804411639.tar.gz
gss-proxy-798883aad353add2f9830e6e2c993ac804411639.tar.xz
gss-proxy-798883aad353add2f9830e6e2c993ac804411639.zip
Add macro to suppress const warnings
-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; \