>From f65de445a6d12e55ffe7baba0b178c84ea28dd67 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 15 Nov 2014 17:45:17 +0100 Subject: [PATCH 3/8] Suppress clang warning Result of 'malloc' is converted to a pointer of type 'uint32_t', which is incompatible with sizeof operand type 'int32_t' --- proxy/src/gp_export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c index 3cd514886b992f131b3050d9d1cb943d887ae04e..a066ae4c3578eea6011235ae4ba13c4760c04e8a 100644 --- a/proxy/src/gp_export.c +++ b/proxy/src/gp_export.c @@ -699,7 +699,7 @@ int gp_get_export_creds_type(struct gssx_call_ctx *ctx) } #define CREDS_BUF_MAX (NGROUPS_MAX * sizeof(int32_t)) -#define CREDS_HDR (3 * sizeof(int32_t)) /* uid, gid, count */ +#define CREDS_HDR (3 * sizeof(uint32_t)) /* uid, gid, count */ static uint32_t gp_export_creds_enoent(uint32_t *min, gss_buffer_t buf) { -- 2.1.0