summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-11-09 23:41:10 +0000
committerJim Meyering <jim@meyering.net>1995-11-09 23:41:10 +0000
commitb7b00aad08d051cda6bfb96d64462369b4defa23 (patch)
tree301b25ca6a8f260c86b499290fadd50b6a6d7152 /src/du.c
parentec2a94a41079f023443be393594d12e8315a706e (diff)
downloadcoreutils-b7b00aad08d051cda6bfb96d64462369b4defa23.tar.xz
Protect prototypes with __P.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/du.c b/src/du.c
index 2e1fade2b..c631c8b6d 100644
--- a/src/du.c
+++ b/src/du.c
@@ -90,23 +90,24 @@ typedef struct
char *text; /* Pointer to the text. */
} *string, stringstruct;
-int stat (const char *, struct stat *);
-int lstat (const char *, struct stat *);
+int stat ();
+int lstat ();
char *savedir ();
char *xmalloc ();
char *xrealloc ();
-static int hash_insert (ino_t ino, dev_t dev);
-static int hash_insert2 (struct htab *htab, ino_t ino, dev_t dev);
-static long count_entry (char *ent, int top, dev_t last_dev);
-static void du_files (char **files);
-static void hash_init (unsigned int modulus, unsigned int entry_tab_size);
-static void hash_reset (void);
-static void str_concatc (string s1, char *cstr);
-static void str_copyc (string s1, char *cstr);
-static void str_init (string *s1, unsigned int size);
-static void str_trunc (string s1, unsigned int length);
+static int hash_insert __P ((ino_t ino, dev_t dev));
+static int hash_insert2 __P ((struct htab *htab, ino_t ino, dev_t dev));
+static long count_entry __P ((char *ent, int top, dev_t last_dev));
+static void du_files __P ((char **files));
+static void hash_init __P ((unsigned int modulus,
+ unsigned int entry_tab_size));
+static void hash_reset __P ((void));
+static void str_concatc __P ((string s1, char *cstr));
+static void str_copyc __P ((string s1, char *cstr));
+static void str_init __P ((string *s1, unsigned int size));
+static void str_trunc __P ((string s1, unsigned int length));
/* Name under which this program was invoked. */
char *program_name;
@@ -153,7 +154,7 @@ static struct stat stat_buf;
/* A pointer to either lstat or stat, depending on whether
dereferencing of all symbolic links is to be done. */
-static int (*xstat) ();
+static int __P ((*xstat) ());
/* The exit status to use if we don't get any fatal errors. */
static int exit_status;