From fba1bf5a2c59fb49c287b542bdcb2923d4fee5da Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 16 Dec 2010 19:48:03 +0000 Subject: [PATCH] The 'ret' variable is of type ssize_t and we use proper format for it (%zd), so no (bogus) cast is needed. MFC after: 3 days --- sbin/hastd/primary.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index cf597368401a..e1083975379b 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -1142,8 +1142,7 @@ local_send_thread(void *arg) } else if (ret != ggio->gctl_length) { reqlog(LOG_WARNING, 0, ggio, "Local request failed (%zd != %jd), trying remote node. ", - (intmax_t)ret, - (intmax_t)ggio->gctl_length); + ret, (intmax_t)ggio->gctl_length); } QUEUE_INSERT1(hio, send, rncomp); continue; @@ -1162,7 +1161,7 @@ local_send_thread(void *arg) hio->hio_errors[ncomp] = EIO; reqlog(LOG_WARNING, 0, ggio, "Local request failed (%zd != %jd): ", - (intmax_t)ret, (intmax_t)ggio->gctl_length); + ret, (intmax_t)ggio->gctl_length); } else { hio->hio_errors[ncomp] = 0; }