From: Jim Meyering Date: Fri, 16 Dec 1994 05:42:47 +0000 (+0000) Subject: Include "error.h" instead of simply declaring `void error ();'. X-Git-Tag: textutils-1_12_1~386 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7323b7d9f2c7710bf836cd31213b7e0c644cebe5;p=thirdparty%2Fcoreutils.git Include "error.h" instead of simply declaring `void error ();'. --- diff --git a/src/fold.c b/src/fold.c index 307a7a941f..d6c07d6151 100644 --- a/src/fold.c +++ b/src/fold.c @@ -27,10 +27,10 @@ #include #include "system.h" #include "version.h" +#include "error.h" char *xrealloc (); char *xmalloc (); -void error (); /* The name this program was run with. */ char *program_name; diff --git a/src/head.c b/src/head.c index 5b69dcda95..53c21accd6 100644 --- a/src/head.c +++ b/src/head.c @@ -40,6 +40,7 @@ #include #include "system.h" #include "version.h" +#include "error.h" /* Number of lines/chars/blocks to head. */ #define DEFAULT_NUMBER 10 @@ -60,7 +61,6 @@ enum header_mode multiple_files, always, never }; -void error (); int safe_read (); static int head (); diff --git a/src/join.c b/src/join.c index a09ef631d8..f6ad7a4fa0 100644 --- a/src/join.c +++ b/src/join.c @@ -28,10 +28,10 @@ #include "system.h" #include "version.h" #include "long-options.h" +#include "error.h" char *xmalloc (); char *xrealloc (); -void error (); static void usage (); #define min(A, B) ((A) < (B) ? (A) : (B)) diff --git a/src/nl.c b/src/nl.c index ca98a2b565..cdfbd8ce1f 100644 --- a/src/nl.c +++ b/src/nl.c @@ -27,6 +27,7 @@ #include "linebuffer.h" #include "system.h" #include "version.h" +#include "error.h" #ifndef TRUE #define TRUE 1 @@ -53,7 +54,6 @@ enum section char *xmalloc (); char *xrealloc (); -void error (); static enum section check_section (); static int build_type_arg (); diff --git a/src/paste.c b/src/paste.c index 33a134f73d..d489136279 100644 --- a/src/paste.c +++ b/src/paste.c @@ -45,8 +45,8 @@ #include #include "system.h" #include "version.h" +#include "error.h" -void error (); char *xmalloc (); char *xrealloc (); diff --git a/src/pr.c b/src/pr.c index 89c84975c7..4d6ceafd4e 100644 --- a/src/pr.c +++ b/src/pr.c @@ -102,10 +102,10 @@ #include #include "system.h" #include "version.h" +#include "error.h" char *xmalloc (); char *xrealloc (); -void error (); static int char_to_clump (); static int read_line (); diff --git a/src/sort.c b/src/sort.c index 94c9408dba..97cc0840bb 100644 --- a/src/sort.c +++ b/src/sort.c @@ -31,6 +31,7 @@ #include "version.h" #include "long-options.h" #include "safe-stat.h" +#include "error.h" #ifdef _POSIX_VERSION #include @@ -45,7 +46,6 @@ char *realloc (); void free (); #endif -void error (); static void usage (); #define min(a, b) ((a) < (b) ? (a) : (b)) diff --git a/src/split.c b/src/split.c index 3dcfaa0afc..eb3bd15aa6 100644 --- a/src/split.c +++ b/src/split.c @@ -28,9 +28,9 @@ #include #include "system.h" #include "version.h" +#include "error.h" char *xmalloc (); -void error (); int full_write (); int safe_read (); diff --git a/src/sum.c b/src/sum.c index 6c68c0b1a0..2a77eef27e 100644 --- a/src/sum.c +++ b/src/sum.c @@ -26,11 +26,11 @@ #include #include "system.h" #include "version.h" +#include "error.h" static int bsd_sum_file (); static int sysv_sum_file (); -void error (); int safe_read (); /* The name this program was run with. */ diff --git a/src/tac.c b/src/tac.c index 40e1ecb2a0..b136298404 100644 --- a/src/tac.c +++ b/src/tac.c @@ -44,6 +44,7 @@ tac -r -s '.\| #include #include "system.h" #include "version.h" +#include "error.h" #ifndef STDC_HEADERS char *malloc (); @@ -68,7 +69,6 @@ static void output (); static void save_stdin (); static void xwrite (); -void error (); int full_write (); int safe_read (); diff --git a/src/tr.c b/src/tr.c index b6b62e4f5e..3dea1d3a3a 100644 --- a/src/tr.c +++ b/src/tr.c @@ -30,6 +30,7 @@ #include "system.h" #include "version.h" +#include "error.h" #ifndef ULONG_MAX #define ULONG_MAX ((unsigned long) ~(unsigned long) 0) @@ -196,7 +197,6 @@ struct Spec_list char *xmalloc (); char *stpcpy (); -void error (); int safe_read (); /* The name by which this program was run. */ diff --git a/src/unexpand.c b/src/unexpand.c index 97d3569c32..d3f8125ba6 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -45,6 +45,7 @@ #include #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. */ @@ -56,7 +57,6 @@ char *xmalloc (); char *xrealloc (); -void error (); static FILE *next_file (); static void add_tabstop (); diff --git a/src/uniq.c b/src/uniq.c index c4a05edbb8..0142c51c97 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -28,11 +28,10 @@ #include "system.h" #include "linebuffer.h" #include "version.h" +#include "error.h" #define min(x, y) ((x) < (y) ? (x) : (y)) -void error (); - static char *find_field (); static int different (); static void check_file (); diff --git a/src/wc.c b/src/wc.c index 62da906466..7086c96c00 100644 --- a/src/wc.c +++ b/src/wc.c @@ -25,11 +25,11 @@ #include #include "system.h" #include "version.h" +#include "error.h" /* Size of atomic reads. */ #define BUFFER_SIZE (16 * 1024) -void error (); int safe_read (); static void wc ();