summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-01-19 18:53:32 +0000
committerjoerg <joerg@pkgsrc.org>2012-01-19 18:53:32 +0000
commiteb43d76b21686b33346efd172462d56809a22f1e (patch)
tree8bf3af635a71f54bb1f3720c61a97d7d9f0a8fb7 /pkgtools
parenta31632926a8e3783a7437185f868e4181bb499be (diff)
downloadpkgsrc-eb43d76b21686b33346efd172462d56809a22f1e.tar.gz
Shut up cast warning.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pbulk/files/pbulk/pbuild/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/pbuild/client.c b/pkgtools/pbulk/files/pbulk/pbuild/client.c
index 13e8c361590..c1661ea06aa 100644
--- a/pkgtools/pbulk/files/pbulk/pbuild/client.c
+++ b/pkgtools/pbulk/files/pbulk/pbuild/client.c
@@ -1,4 +1,4 @@
-/* $NetBSD: client.c,v 1.3 2007/07/27 09:59:36 joerg Exp $ */
+/* $NetBSD: client.c,v 1.4 2012/01/19 18:53:32 joerg Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -92,7 +92,7 @@ loop:
recv_bytes = atomic_read(fd, build_info, build_info_len);
if (recv_bytes == -1)
err(1, "Could not read from socket");
- if (recv_bytes != build_info_len || strlen(build_info) != build_info_len)
+ if ((uint32_t)recv_bytes != build_info_len || strlen(build_info) != build_info_len)
errx(1, "Premature end of stream while reading path from socket");
if (verbosity > 0) {