Include safe-read.h instead of merely declaring safe_read.
authorJim Meyering <jim@meyering.net>
Sat, 11 Apr 1998 18:23:13 +0000 (18:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 11 Apr 1998 18:23:13 +0000 (18:23 +0000)
src/cat.c
src/wc.c

index 4f054d3..7e8e54a 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
 #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;
index 7ee31f9..da05631 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
 #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;