summaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
committerJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
commit53398947a1482e8b83e204186969af6147eaae6e (patch)
treebf4de064df1f022c2e01051b45cafc454ed839c4 /src/date.c
parent5e14cce7ae90f69cf4609b7731377e934e79c219 (diff)
downloadcoreutils-53398947a1482e8b83e204186969af6147eaae6e.tar.xz
Protoize and __P-protect forward dcls.
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/date.c b/src/date.c
index eabecd85c..635cf2c17 100644
--- a/src/date.c
+++ b/src/date.c
@@ -45,8 +45,8 @@ char *xrealloc ();
time_t get_date ();
time_t posixtime ();
-static void show_date ();
-static void usage ();
+static void show_date __P ((const char *format, time_t when));
+static void usage __P (int status));
/* The name this program was run with, for error messages. */
char *program_name;
@@ -77,9 +77,7 @@ static struct option const long_options[] =
If any line cannot be parsed, return nonzero; otherwise return zero. */
static int
-batch_convert (input_filename, format)
- const char *input_filename;
- const char *format;
+batch_convert (const char *input_filename, const char *format)
{
int status;
FILE *in_stream;
@@ -138,9 +136,7 @@ batch_convert (input_filename, format)
}
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int optc;
const char *datestr = NULL;
@@ -301,9 +297,7 @@ non-option argument must be a format string beginning with `+'"));
standard output format (ctime style but with a timezone inserted). */
static void
-show_date (format, when)
- const char *format;
- time_t when;
+show_date (const char *format, time_t when)
{
struct tm *tm;
char *out = NULL;
@@ -336,8 +330,7 @@ show_date (format, when)
}
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),