[syslinux:master] pxe: fix truncation warning
syslinux-bot for Jonathan Boeing
jonathan.n.boeing at gmail.com
Sat May 16 10:00:10 PDT 2015
Commit-ID: b15c5f186d2b1f55f4eacbeb35b2da99c5366dd7
Gitweb: http://www.syslinux.org/commit/b15c5f186d2b1f55f4eacbeb35b2da99c5366dd7
Author: Jonathan Boeing <jonathan.n.boeing at gmail.com>
AuthorDate: Mon, 9 Feb 2015 20:01:35 -0700
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sun, 3 May 2015 10:49:32 -0400
pxe: fix truncation warning
When building efi64, there's a size mismatch between the uint32_t
variable (32 bits) and the -1UL (64 bits). This fixes the warning:
large integer implicitly truncated to unsigned type
Signed-off-by: Jonathan Boeing <jonathan.n.boeing at gmail.com>
---
core/fs/pxe/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/fs/pxe/http.c b/core/fs/pxe/http.c
index 0768c10..bd18f3c 100644
--- a/core/fs/pxe/http.c
+++ b/core/fs/pxe/http.c
@@ -50,7 +50,7 @@ static bool append_ch(char *str, size_t size, size_t *pos, int ch)
static size_t cookie_len, header_len;
static char *cookie_buf, *header_buf;
-__export uint32_t SendCookies = -1UL; /* Send all cookies */
+__export uint32_t SendCookies = UINT_MAX; /* Send all cookies */
static size_t http_do_bake_cookies(char *q)
{
More information about the Syslinux-commits
mailing list