diff options
author | Jim Meyering <jim@meyering.net> | 1994-12-16 05:42:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-12-16 05:42:47 +0000 |
commit | 7323b7d9f2c7710bf836cd31213b7e0c644cebe5 (patch) | |
tree | 59a49034b573c492cae9bbf0bd64e49e55e582ee /src | |
parent | 8d6c6946ddc86f8af7c2cad20bc4209ee5b3f88b (diff) | |
download | coreutils-7323b7d9f2c7710bf836cd31213b7e0c644cebe5.tar.xz |
Include "error.h" instead of simply declaring `void error ();'.
Diffstat (limited to 'src')
-rw-r--r-- | src/fold.c | 2 | ||||
-rw-r--r-- | src/head.c | 2 | ||||
-rw-r--r-- | src/join.c | 2 | ||||
-rw-r--r-- | src/nl.c | 2 | ||||
-rw-r--r-- | src/paste.c | 2 | ||||
-rw-r--r-- | src/pr.c | 2 | ||||
-rw-r--r-- | src/sort.c | 2 | ||||
-rw-r--r-- | src/split.c | 2 | ||||
-rw-r--r-- | src/sum.c | 2 | ||||
-rw-r--r-- | src/tac.c | 2 | ||||
-rw-r--r-- | src/tr.c | 2 | ||||
-rw-r--r-- | src/unexpand.c | 2 | ||||
-rw-r--r-- | src/uniq.c | 3 | ||||
-rw-r--r-- | src/wc.c | 2 |
14 files changed, 14 insertions, 15 deletions
diff --git a/src/fold.c b/src/fold.c index 307a7a941..d6c07d615 100644 --- a/src/fold.c +++ b/src/fold.c @@ -27,10 +27,10 @@ #include <sys/types.h> #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 5b69dcda9..53c21accd 100644 --- a/src/head.c +++ b/src/head.c @@ -40,6 +40,7 @@ #include <sys/types.h> #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 a09ef631d..f6ad7a4fa 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)) @@ -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 33a134f73..d48913627 100644 --- a/src/paste.c +++ b/src/paste.c @@ -45,8 +45,8 @@ #include <sys/types.h> #include "system.h" #include "version.h" +#include "error.h" -void error (); char *xmalloc (); char *xrealloc (); @@ -102,10 +102,10 @@ #include <time.h> #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 94c9408db..97cc0840b 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 <limits.h> @@ -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 3dcfaa0af..eb3bd15aa 100644 --- a/src/split.c +++ b/src/split.c @@ -28,9 +28,9 @@ #include <sys/types.h> #include "system.h" #include "version.h" +#include "error.h" char *xmalloc (); -void error (); int full_write (); int safe_read (); @@ -26,11 +26,11 @@ #include <getopt.h> #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. */ @@ -44,6 +44,7 @@ tac -r -s '.\| #include <regex.h> #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 (); @@ -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 97d3569c3..d3f8125ba 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -45,6 +45,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. */ @@ -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 c4a05edbb..0142c51c9 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 (); @@ -25,11 +25,11 @@ #include <sys/types.h> #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 (); |