Include "error.h" instead of simply declaring `void error ();'.
authorJim Meyering <jim@meyering.net>
Fri, 16 Dec 1994 05:41:05 +0000 (05:41 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 16 Dec 1994 05:41:05 +0000 (05:41 +0000)
src/cat.c
src/cksum.c
src/comm.c
src/csplit.c
src/cut.c
src/expand.c
src/fmt.c

index 30e1eda..8ef9d71 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
 #endif
 #include "system.h"
 #include "version.h"
+#include "error.h"
 
 #define max(h,i) ((h) > (i) ? (h) : (i))
 
 char *stpcpy ();
 char *xmalloc ();
-void error ();
 int full_write ();
 int safe_read ();
 
index 802816d..001e882 100644 (file)
@@ -109,12 +109,11 @@ main ()
 #include <sys/types.h>
 #include "system.h"
 #include "version.h"
+#include "error.h"
 
 /* Number of bytes to read at once.  */
 #define BUFLEN (1 << 16)
 
-void error ();
-
 /* The name this program was run with.  */
 char *program_name;
 
index 3ed34cd..93e38f4 100644 (file)
@@ -25,6 +25,7 @@
 #include "system.h"
 #include "linebuffer.h"
 #include "version.h"
+#include "error.h"
 
 #define min(x, y) ((x) < (y) ? (x) : (y))
 
@@ -53,7 +54,6 @@ static struct option const long_options[] =
   {0, 0, 0, 0}
 };
 
-void error ();
 static int compare_files ();
 static void writeline ();
 static void usage ();
index 725d3c2..a51ad8f 100644 (file)
@@ -30,6 +30,7 @@
 #include "regex.h"
 #include "system.h"
 #include "version.h"
+#include "error.h"
 
 #ifdef STDC_HEADERS
 #include <stdlib.h>
@@ -42,10 +43,8 @@ char *realloc ();
 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
 #endif
 
-void error ();
 int safe_read ();
 
-
 static char *xrealloc ();
 static char *xmalloc ();
 static void cleanup ();
index 79f1b58..3a20a27 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -73,6 +73,7 @@
 #include <sys/types.h>
 #include "system.h"
 #include "version.h"
+#include "error.h"
 
 #define FATAL_ERROR(s)                                                 \
   do                                                                   \
@@ -109,7 +110,6 @@ struct range_pair
 
 char *xmalloc ();
 char *xrealloc ();
-void error ();
 
 /* This buffer is used to support the semantics of the -s option
    (or lack of same) when the specified field list includes (does
index fb6774a..772d41d 100644 (file)
@@ -43,6 +43,7 @@
 #include <sys/types.h>
 #include "system.h"
 #include "version.h"
+#include "error.h"
 
 /* The number of bytes added at a time to the amount of memory
    allocated for the output line. */
@@ -54,7 +55,6 @@
 
 char *xmalloc ();
 char *xrealloc ();
-void error ();
 
 static FILE *next_file ();
 static void add_tabstop ();
index 2f9cd8a..be4fe30 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -25,6 +25,7 @@
 
 #include "system.h"
 #include "version.h"
+#include "error.h"
 
 /* The following parameters represent the program's idea of what is
    "best".  Adjust to taste, subject to the caveats given.  */
@@ -144,12 +145,6 @@ struct Word
 #define        _(x) ()
 #endif
 
-#ifdef HAVE_VPRINTF
-void error _ ((int, int, const char *,...));
-#else
-void error ();
-#endif
-
 static void set_prefix _ ((char *p));
 static void fmt _ ((FILE *f));
 static bool get_paragraph _ ((FILE *f));