1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-18 09:46:33 +02:00

* src/*.c: Include "error.h" instead of simply declaring

`void error ();'.
This commit is contained in:
Jim Meyering
1994-12-20 05:26:44 +00:00
parent 6bb619d33c
commit a9f1783e20
20 changed files with 20 additions and 25 deletions

View File

@@ -32,9 +32,9 @@
#include "system.h"
#include "version.h"
#include "long-options.h"
#include "error.h"
char *basename ();
void error ();
void strip_trailing_slashes ();
static void remove_suffix ();

View File

@@ -25,6 +25,7 @@
#include "version.h"
#include "system.h"
#include "getline.h"
#include "error.h"
#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
@@ -42,7 +43,6 @@ int stime ();
char *xrealloc ();
time_t get_date ();
time_t posixtime ();
void error ();
static void show_date ();
static void usage ();

View File

@@ -24,8 +24,8 @@
#include "system.h"
#include "version.h"
#include "long-options.h"
#include "error.h"
void error ();
void strip_trailing_slashes ();
/* The name this program was run with. */

View File

@@ -85,9 +85,9 @@
#include "version.h"
#include "system.h"
#include "error.h"
int putenv ();
void error ();
static void usage ();

View File

@@ -36,6 +36,7 @@
#include "system.h"
#include "version.h"
#include "long-options.h"
#include "error.h"
#define NEW(type) ((type *) xmalloc (sizeof (type)))
#define OLD(x) free ((char *) x)
@@ -66,7 +67,6 @@ static char **args;
/* The name this program was run with. */
char *program_name;
void error ();
char *xstrdup ();
char *strstr ();
char *xmalloc ();

View File

@@ -24,6 +24,7 @@
#include "system.h"
#include "version.h"
#include "long-options.h"
#include "error.h"
#if !defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && \
defined (HAVE_SYS_SYSTEMINFO_H) && defined(HAVE_LIMITS_H)
@@ -46,7 +47,6 @@ sethostname (name, namelen)
#define HAVE_SETHOSTNAME 1 /* Now we have it... */
#endif
void error ();
char *xgethostname ();
/* The name this program was run with. */

View File

@@ -28,6 +28,7 @@
#include "version.h"
#include "system.h"
#include "error.h"
#ifdef _POSIX_VERSION
#include <limits.h>
@@ -51,7 +52,6 @@ gid_t getegid ();
char *xmalloc ();
int getugroups ();
void error ();
static void print_user ();
static void print_group ();

View File

@@ -33,6 +33,7 @@
#include "version.h"
#include "system.h"
#include "long-options.h"
#include "error.h"
#ifdef NICE_PRIORITY
#define GET_PRIORITY() nice (0)
@@ -40,8 +41,6 @@
#define GET_PRIORITY() getpriority (PRIO_PROCESS, 0)
#endif
void error ();
static int isinteger ();
static void usage ();

View File

@@ -46,6 +46,7 @@
#include "version.h"
#include "system.h"
#include "safe-stat.h"
#include "error.h"
#ifdef _POSIX_VERSION
#include <limits.h>
@@ -92,7 +93,6 @@
#endif
char *xstrdup ();
void error ();
static int validate_path ();
static void usage ();

View File

@@ -34,8 +34,7 @@
#include "version.h"
#include "system.h"
void error ();
#include "error.h"
/* The name this program was run with. */
char *program_name;

View File

@@ -51,6 +51,7 @@
#include "system.h"
#include "version.h"
#include "long-options.h"
#include "error.h"
#ifndef STDC_HEADERS
double strtod ();
@@ -63,7 +64,6 @@ unsigned long strtoul ();
#define octtobin(c) ((c) - '0')
char *xmalloc ();
void error ();
static double xstrtod ();
static int print_esc ();

View File

@@ -24,8 +24,8 @@
#include "system.h"
#include "version.h"
#include "long-options.h"
#include "error.h"
void error ();
char *xgetcwd ();
/* The name this program was run with. */

View File

@@ -22,8 +22,7 @@
#include "version.h"
#include "system.h"
void error ();
#include "error.h"
static long argdecode ();

View File

@@ -50,6 +50,7 @@
#include "system.h"
#include "version.h"
#include "long-options.h"
#include "error.h"
#if defined(GWINSZ_BROKEN) /* Such as for SCO UNIX 3.2.2. */
#undef TIOCGWINSZ
@@ -161,8 +162,6 @@ static void set_control_char ();
static void set_speed ();
static void set_window_size ();
void error ();
/* Which speeds to set. */
enum speed_setting
{

View File

@@ -121,6 +121,7 @@ uid_t getuid ();
#endif
#include "version.h"
#include "error.h"
/* The default PATH for simulated logins to non-superuser accounts. */
#define DEFAULT_LOGIN_PATH ":/usr/ucb:/bin:/usr/bin"
@@ -144,7 +145,6 @@ char *basename ();
char *xmalloc ();
char *xrealloc ();
char *xstrdup ();
void error ();
static char *concat ();
static int correct_password ();

View File

@@ -25,9 +25,9 @@
#include "system.h"
#include "version.h"
#include "error.h"
char *xmalloc ();
void error ();
int full_write ();
static int tee ();

View File

@@ -38,6 +38,7 @@
# include "safe-stat.h"
# include "safe-lstat.h"
# include "group-member.h"
# include "error.h"
# if !defined (S_IXUGO)
# define S_IXUGO 0111
# endif /* S_IXUGO */

View File

@@ -29,8 +29,7 @@
#include "system.h"
#include "version.h"
void error ();
#include "error.h"
static void usage ();

View File

@@ -36,8 +36,7 @@
#include "system.h"
#include "version.h"
void error ();
#include "error.h"
static void print_element ();
static void usage ();

View File

@@ -53,6 +53,7 @@
#include "system.h"
#include "version.h"
#include "safe-stat.h"
#include "error.h"
#if !defined (UTMP_FILE) && defined (_PATH_UTMP) /* 4.4BSD. */
#define UTMP_FILE _PATH_UTMP
@@ -85,7 +86,6 @@
#endif /* USERS */
#endif /* WHO */
void error ();
int gethostname ();
char *ttyname ();
char *xmalloc ();