mirror of
https://github.com/postgres/postgres.git
synced 2025-12-13 14:22:43 +03:00
Remove unnecessary casts in printf format arguments (%zu/%zd)
Many of these are probably left over from before use of %zu/%zd was portable. Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/07fa29f9-42d7-4aac-8834-197918cbbab6%40eisentraut.org
This commit is contained in:
@@ -3094,9 +3094,9 @@ keep_going: /* We will come back to here until there is
|
||||
UNIXSOCK_PATH(portstr, thisport, ch->host);
|
||||
if (strlen(portstr) >= UNIXSOCK_PATH_BUFLEN)
|
||||
{
|
||||
libpq_append_conn_error(conn, "Unix-domain socket path \"%s\" is too long (maximum %d bytes)",
|
||||
libpq_append_conn_error(conn, "Unix-domain socket path \"%s\" is too long (maximum %zu bytes)",
|
||||
portstr,
|
||||
(int) (UNIXSOCK_PATH_BUFLEN - 1));
|
||||
(UNIXSOCK_PATH_BUFLEN - 1));
|
||||
goto keep_going;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user