diff options
author | joerg <joerg> | 2009-03-06 15:21:17 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-03-06 15:21:17 +0000 |
commit | 454e89a67dbc01b98429a6040edb91015551381b (patch) | |
tree | 96b292781c30a490da86fffdafb978cb5c9bddef /pkgtools/pbulk | |
parent | 5262c493fe097a8c4a80f4818ee6407c10d6d996 (diff) | |
download | pkgsrc-454e89a67dbc01b98429a6040edb91015551381b.tar.gz |
Add explicit cast to silence GCC on comparing different signs.
Diffstat (limited to 'pkgtools/pbulk')
-rw-r--r-- | pkgtools/pbulk/files/pbulk/pscan/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/pscan/client.c b/pkgtools/pbulk/files/pbulk/pscan/client.c index 49ae4569e4e..e0b1e54cc8b 100644 --- a/pkgtools/pbulk/files/pbulk/pscan/client.c +++ b/pkgtools/pbulk/files/pbulk/pscan/client.c @@ -1,4 +1,4 @@ -/* $NetBSD: client.c,v 1.2 2007/06/25 21:38:45 joerg Exp $ */ +/* $NetBSD: client.c,v 1.3 2009/03/06 15:21:17 joerg Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -117,7 +117,7 @@ loop: sent_bytes = write(fd, output, output_len); if (sent_bytes == -1) err(1, "Could not write to socket"); - if (sent_bytes != output_len) + if ((size_t)sent_bytes != output_len) errx(1, "Premature end of stream while writing to socket"); free(output); goto loop; |