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-23 17:11:36 +0200
commit54bec0b2b67e88ca3fd0398c646e24cbc273b14b (patch)
tree0c1105025716ba5da597c8f2dc62a9a8dbcfbc0e
parent22230c9fe3a4bf263b9aaa3a2dbea494063a44f0 (diff)
downloadgss-proxy-54bec0b2b67e88ca3fd0398c646e24cbc273b14b.tar.gz
gss-proxy-54bec0b2b67e88ca3fd0398c646e24cbc273b14b.tar.xz
gss-proxy-54bec0b2b67e88ca3fd0398c646e24cbc273b14b.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; \