summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-12-16 05:42:47 +0000
committerJim Meyering <jim@meyering.net>1994-12-16 05:42:47 +0000
commit7323b7d9f2c7710bf836cd31213b7e0c644cebe5 (patch)
tree59a49034b573c492cae9bbf0bd64e49e55e582ee /src
parent8d6c6946ddc86f8af7c2cad20bc4209ee5b3f88b (diff)
downloadcoreutils-7323b7d9f2c7710bf836cd31213b7e0c644cebe5.tar.xz
Include "error.h" instead of simply declaring `void error ();'.
Diffstat (limited to 'src')
-rw-r--r--src/fold.c2
-rw-r--r--src/head.c2
-rw-r--r--src/join.c2
-rw-r--r--src/nl.c2
-rw-r--r--src/paste.c2
-rw-r--r--src/pr.c2
-rw-r--r--src/sort.c2
-rw-r--r--src/split.c2
-rw-r--r--src/sum.c2
-rw-r--r--src/tac.c2
-rw-r--r--src/tr.c2
-rw-r--r--src/unexpand.c2
-rw-r--r--src/uniq.c3
-rw-r--r--src/wc.c2
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))
diff --git a/src/nl.c b/src/nl.c
index ca98a2b56..cdfbd8ce1 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 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 ();
diff --git a/src/pr.c b/src/pr.c
index 89c84975c..4d6ceafd4 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -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 ();
diff --git a/src/sum.c b/src/sum.c
index 6c68c0b1a..2a77eef27 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -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. */
diff --git a/src/tac.c b/src/tac.c
index 40e1ecb2a..b13629840 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -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 ();
diff --git a/src/tr.c b/src/tr.c
index b6b62e4f5..3dea1d3a3 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 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 ();
diff --git a/src/wc.c b/src/wc.c
index 62da90646..7086c96c0 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -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 ();