pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/pscan Add explicit cast to ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c9ca96eb373e
branches: trunk
changeset: 555679:c9ca96eb373e
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Mar 06 15:21:17 2009 +0000
description:
Add explicit cast to silence GCC on comparing different signs.
diffstat:
pkgtools/pbulk/files/pbulk/pscan/client.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r b2d493267fcf -r c9ca96eb373e pkgtools/pbulk/files/pbulk/pscan/client.c
--- a/pkgtools/pbulk/files/pbulk/pscan/client.c Fri Mar 06 15:20:37 2009 +0000
+++ b/pkgtools/pbulk/files/pbulk/pscan/client.c Fri Mar 06 15:21:17 2009 +0000
@@ -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@localhost>.
@@ -117,7 +117,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index