summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg>2012-01-19 18:53:32 +0000
committerjoerg <joerg>2012-01-19 18:53:32 +0000
commit7b032b68b5375bc8192c304552fb27f0a6b107ce (patch)
tree8bf3af635a71f54bb1f3720c61a97d7d9f0a8fb7 /pkgtools
parent71edc7566e6d5312c2174cdb31d25aae3f32f6ff (diff)
downloadpkgsrc-7b032b68b5375bc8192c304552fb27f0a6b107ce.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) {