From: Jim Meyering Date: Fri, 31 Aug 2001 07:46:28 +0000 (+0000) Subject: Include full-write.h. X-Git-Tag: TEXTUTILS-2_0_15~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=222973731a5f80c22c9d1255dce0552d1a88b88f;p=thirdparty%2Fcoreutils.git Include full-write.h. (full_write): Remove decl; not needed. --- diff --git a/src/split.c b/src/split.c index 7e31b0a0d8..2632819d32 100644 --- a/src/split.c +++ b/src/split.c @@ -1,5 +1,5 @@ /* split.c -- split a file into pieces. - Copyright (C) 88, 91, 1995-2000 Free Software Foundation, Inc. + Copyright (C) 88, 91, 1995-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #include "system.h" #include "closeout.h" #include "error.h" +#include "full-write.h" #include "safe-read.h" #include "xstrtol.h" @@ -38,8 +39,6 @@ #define AUTHORS N_ ("Torbjorn Granlund and Richard M. Stallman") -int full_write (); - /* The name this program was run with. */ char *program_name; @@ -161,7 +160,7 @@ cwrite (int new_file_flag, const char *bp, int bytes) if (output_desc < 0) error (EXIT_FAILURE, errno, "%s", outfile); } - if (full_write (output_desc, bp, bytes) < 0) + if (full_write (output_desc, bp, bytes) != bytes) error (EXIT_FAILURE, errno, "%s", outfile); }