From 3162903ee77d77104687f5c291948a00e169627f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 11 Apr 2009 19:42:49 +0200 Subject: [PATCH] [MINOR] fix a few remaining printf-like formats on 64-bit platforms Mainly two sizeof() returning size_t which is not the size of an int on 64-bit platforms. (cherry picked from commit 5e4a6f13f4b3c3de0e533284d5fabd9b4bbe00cc) --- src/cfgparse.c | 2 +- src/standard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index 478b7fb34..196954a43 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2628,7 +2628,7 @@ int readcfgfile(const char *file) * Watch out for the last line without the terminating '\n'! */ Alert("parsing [%s:%d]: line too long, limit: %d.\n", - file, linenum, sizeof(thisline)-1); + file, linenum, (int)sizeof(thisline)-1); goto err; } diff --git a/src/standard.c b/src/standard.c index 7f749f957..d419db972 100644 --- a/src/standard.c +++ b/src/standard.c @@ -92,7 +92,7 @@ struct sockaddr_un *str2sun(const char *str) strsz = strlen(str) + 1; if (strsz > sizeof(su.sun_path)) { Alert("Socket path '%s' too long (max %d)\n", - str, sizeof(su.sun_path) - 1); + str, (int)sizeof(su.sun_path) - 1); } else { su.sun_family = AF_UNIX; memcpy(su.sun_path, str, strsz); -- 2.47.3