From 61d3853d38a092525388961c3523ce1a3701cf1e Mon Sep 17 00:00:00 2001 From: fche Date: Mon, 1 Aug 2005 23:23:08 +0000 Subject: 2005-08-01 Frank Ch. Eigler * librelay.c: Correct fwrite api usage. * all: Correct copyright holder name. --- runtime/stpd/librelay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/stpd/librelay.c') 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 @@ -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); } -- cgit