mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
[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.
This commit is contained in:
parent
0bba5a8f6c
commit
5e4a6f13f4
@ -3091,7 +3091,7 @@ int readcfgfile(const char *file)
|
|||||||
* Watch out for the last line without the terminating '\n'!
|
* Watch out for the last line without the terminating '\n'!
|
||||||
*/
|
*/
|
||||||
Alert("parsing [%s:%d]: line too long, limit: %d.\n",
|
Alert("parsing [%s:%d]: line too long, limit: %d.\n",
|
||||||
file, linenum, sizeof(thisline)-1);
|
file, linenum, (int)sizeof(thisline)-1);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ struct sockaddr_un *str2sun(const char *str)
|
|||||||
strsz = strlen(str) + 1;
|
strsz = strlen(str) + 1;
|
||||||
if (strsz > sizeof(su.sun_path)) {
|
if (strsz > sizeof(su.sun_path)) {
|
||||||
Alert("Socket path '%s' too long (max %d)\n",
|
Alert("Socket path '%s' too long (max %d)\n",
|
||||||
str, sizeof(su.sun_path) - 1);
|
str, (int)sizeof(su.sun_path) - 1);
|
||||||
} else {
|
} else {
|
||||||
su.sun_family = AF_UNIX;
|
su.sun_family = AF_UNIX;
|
||||||
memcpy(su.sun_path, str, strsz);
|
memcpy(su.sun_path, str, strsz);
|
||||||
|
Loading…
Reference in New Issue
Block a user