commit 3d94db9: [Minor] Fix format string...

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Sep 21 11:35:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-09-21 12:31:28 +0100
URL: https://github.com/rspamd/rspamd/commit/3d94db91d6ac3fa323c6f30a2398f2b7e88fc729 (HEAD -> master)

[Minor] Fix format string...

---
 src/libserver/rspamd_control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index b16ddf68f..ef17ac24f 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -782,7 +782,7 @@ rspamd_control_ignore_io_handler (int fd, short what, void *ud)
 
 	/* At this point we just ignore replies from the workers */
 	if (read (fd, &rep, sizeof (rep)) == -1) {
-		msg_debug("cannot read %d bytes: %s", sizeof(rep), strerror(errno));
+		msg_debug("cannot read %d bytes: %s", (int)sizeof(rep), strerror(errno));
 	}
 	rspamd_control_stop_pending (elt);
 }


More information about the Commits mailing list