summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-12-16 19:48:03 +0000
committerpjd <pjd@FreeBSD.org>2010-12-16 19:48:03 +0000
commit595eb1de94cae05d53df41a69722750b50bb1a29 (patch)
tree2c600bc25b7cbe9b91afc2d5e560ad5007cd4b59 /sbin
parent60edfae6076d16cd3b6ca99110f4c3056d1ae0ea (diff)
downloadFreeBSD-src-595eb1de94cae05d53df41a69722750b50bb1a29.zip
FreeBSD-src-595eb1de94cae05d53df41a69722750b50bb1a29.tar.gz
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
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/primary.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index cf59736..e1083975 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;
}
OpenPOWER on IntegriCloud