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/lib Deal with stupid GCC wa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5b354c55c9bc
branches: trunk
changeset: 359044:5b354c55c9bc
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Feb 25 21:21:53 2017 +0000
description:
Deal with stupid GCC warnings on Linux due to glibc deciding that
write's return value must be used at all times.
diffstat:
pkgtools/pbulk/files/pbulk/lib/event.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 04a8f0e2a64e -r 5b354c55c9bc pkgtools/pbulk/files/pbulk/lib/event.c
--- a/pkgtools/pbulk/files/pbulk/lib/event.c Sat Feb 25 21:14:36 2017 +0000
+++ b/pkgtools/pbulk/files/pbulk/lib/event.c Sat Feb 25 21:21:53 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: event.c,v 1.7 2015/09/08 13:57:36 joerg Exp $ */
+/* $NetBSD: event.c,v 1.8 2017/02/25 21:21:53 joerg Exp $ */
/*-
* Copyright (c) 2007, 2009 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -269,7 +269,8 @@
}
old_errno = errno;
- write(signal_pipe[1], &buf, 1);
+ if (write(signal_pipe[1], &buf, 1)) {
+ }
errno = old_errno;
}
Home |
Main Index |
Thread Index |
Old Index