ehlo,

attached patch wix warning on 32 bit platforms.

LS
>From 175fbea9da800c62a4f493eaf43ff102d1159671 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <[email protected]>
Date: Thu, 30 Jun 2016 15:23:07 +0200
Subject: [PATCH] Secrets: Fix format string

body->length has type size_t and not long unsigned.
size_t does not have the same size on 64 bit and 32 bit platform

src/responder/secrets/providers.c: In function 'sec_http_reply_with_body':
src/responder/secrets/providers.c:204:25: error: format '%lu' expects argument
  of type 'long unsigned int', but argument 6 has type
  'size_t {aka unsigned int}' [-Werror=format=]
                         "HTTP/1.1 %d %s\r\n"
                         "Content-Type: %s\r\n"
                         "Content-Length: %lu\r\n"
                         ^
---
 src/responder/secrets/providers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/responder/secrets/providers.c 
b/src/responder/secrets/providers.c
index 
2826a7040fbcb52cc96b6314cf8c54699304aae9..8d815b4837ce71bac648f38a6a8956771dd0520d
 100644
--- a/src/responder/secrets/providers.c
+++ b/src/responder/secrets/providers.c
@@ -203,7 +203,7 @@ int sec_http_reply_with_body(TALLOC_CTX *mem_ctx, struct 
sec_data *reply,
     reply->data = talloc_asprintf(mem_ctx,
                         "HTTP/1.1 %d %s\r\n"
                         "Content-Type: %s\r\n"
-                        "Content-Length: %lu\r\n"
+                        "Content-Length: %zu\r\n"
                         "\r\n",
                         sec_http_status_format_table[code].status,
                         sec_http_status_format_table[code].text,
-- 
2.7.4

_______________________________________________
sssd-devel mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]

Reply via email to