summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-04-11 18:23:13 +0000
committerJim Meyering <jim@meyering.net>1998-04-11 18:23:13 +0000
commit66c7b3c41d44c5153e9e7cc93eaffc3cddc0aadd (patch)
tree3c4b4812329548d22a003c2d7043b92a69aaba82 /src
parentac7b3c4fa9ed57b536207950255f71f0d0cd3448 (diff)
downloadcoreutils-66c7b3c41d44c5153e9e7cc93eaffc3cddc0aadd.tar.xz
Include safe-read.h instead of merely declaring safe_read.
Diffstat (limited to 'src')
-rw-r--r--src/cat.c2
-rw-r--r--src/wc.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/cat.c b/src/cat.c
index 4f054d3ce..7e8e54ad8 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -32,13 +32,13 @@
#endif
#include "system.h"
#include "error.h"
+#include "safe-read.h"
/* Undefine, to avoid warning about redefinition on some systems. */
#undef max
#define max(h,i) ((h) > (i) ? (h) : (i))
int full_write ();
-int safe_read ();
/* Name under which this program was invoked. */
char *program_name;
diff --git a/src/wc.c b/src/wc.c
index 7ee31f9be..da05631a8 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -29,12 +29,11 @@
#include "system.h"
#include "error.h"
#include "human.h"
+#include "safe-read.h"
/* Size of atomic reads. */
#define BUFFER_SIZE (16 * 1024)
-int safe_read ();
-
/* The name this program was run with. */
char *program_name;