summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_common.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-03-25 22:27:57 -0400
committerSimo Sorce <simo@redhat.com>2013-03-27 10:30:35 -0400
commitcc2a2e800995b587c88776a76de096d38eb82229 (patch)
treecc9973b624e3d448331fda01b092acc02683afb7 /proxy/src/gp_common.h
parentc3a36be0184c4abdd22e3fc01dc29861678c80ec (diff)
downloadgss-proxy-cc2a2e800995b587c88776a76de096d38eb82229.tar.gz
gss-proxy-cc2a2e800995b587c88776a76de096d38eb82229.tar.xz
gss-proxy-cc2a2e800995b587c88776a76de096d38eb82229.zip
Improve ccache formatting.
Add %U support which will insert the user uid number instead of name. Fix %% support by actually removing one of the % charcters Fix %<invalid> sequence by actually bailing out if one is found. Add GPDEBUG statements to indicate what went wrong. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
Diffstat (limited to 'proxy/src/gp_common.h')
-rw-r--r--proxy/src/gp_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h
index ad68e55..13a4c9b 100644
--- a/proxy/src/gp_common.h
+++ b/proxy/src/gp_common.h
@@ -57,6 +57,11 @@
elem->next = NULL; \
} while (0)
+#define safefree(ptr) do { \
+ free(ptr); \
+ ptr = NULL; \
+} while(0)
+
/* max out at 1MB for now */
#define MAX_RPC_SIZE 1024*1024