summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/librelay.c
diff options
context:
space:
mode:
authorfche <fche>2005-08-01 23:23:08 +0000
committerfche <fche>2005-08-01 23:23:08 +0000
commit61d3853d38a092525388961c3523ce1a3701cf1e (patch)
treed6cd341b22c3de50cf7196421bf51bb35ca1e0cc /runtime/stpd/librelay.c
parent63d4bb3c5d43cf2760588281414ca9d0e5276da5 (diff)
downloadsystemtap-steved-61d3853d38a092525388961c3523ce1a3701cf1e.tar.gz
systemtap-steved-61d3853d38a092525388961c3523ce1a3701cf1e.tar.xz
systemtap-steved-61d3853d38a092525388961c3523ce1a3701cf1e.zip
2005-08-01 Frank Ch. Eigler <fche@redhat.com>
* librelay.c: Correct fwrite api usage. * all: Correct copyright holder name.
Diffstat (limited to 'runtime/stpd/librelay.c')
-rw-r--r--runtime/stpd/librelay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c
index 2868fafc..4fe9d548 100644
--- a/runtime/stpd/librelay.c
+++ b/runtime/stpd/librelay.c
@@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Copyright (C) IBM Corporation, 2005
- * Copyright (C) Redhat Inc, 2005
+ * Copyright (C) Red Hat Inc, 2005
*
*/
#include <ctype.h>
@@ -343,7 +343,7 @@ static int process_subbufs(struct buf_info *info)
subbuf_ptr += sizeof(padding);
len = (params.subbuf_size - sizeof(padding)) - padding;
if (len) {
- if (fwrite_unlocked (subbuf_ptr, len, 1, percpu_tmpfile[cpu]) < 0) {
+ if (fwrite_unlocked (subbuf_ptr, len, 1, percpu_tmpfile[cpu]) != 1) {
fprintf(stderr, "ERROR: couldn't write to output file for cpu %d, exiting: errcode = %d: %s\n", cpu, errno, strerror(errno));
exit(1);
}