summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-31 07:46:28 +0000
committerJim Meyering <jim@meyering.net>2001-08-31 07:46:28 +0000
commit222973731a5f80c22c9d1255dce0552d1a88b88f (patch)
tree4c4864d89b438997fb815c3950bf958ecbb65370 /src
parent30cc300814f5412d77d67329cc5170f2ec89f0bd (diff)
downloadcoreutils-222973731a5f80c22c9d1255dce0552d1a88b88f.tar.xz
Include full-write.h.
(full_write): Remove decl; not needed.
Diffstat (limited to 'src')
-rw-r--r--src/split.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/split.c b/src/split.c
index 7e31b0a0d..2632819d3 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);
}