summaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-01 18:06:39 +0000
committerJim Meyering <jim@meyering.net>1994-10-01 18:06:39 +0000
commitb055972c6b12e52f0e41a47d47b711e10b530c1b (patch)
tree6f1ea0d50e91eaaef699189305c27f5dbbc3ecd3 /src/date.c
parentbc60940ea94f796d3ada4b6272565f68213c591f (diff)
downloadcoreutils-b055972c6b12e52f0e41a47d47b711e10b530c1b.tar.xz
.
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/date.c b/src/date.c
index da33d4169..0e9959664 100644
--- a/src/date.c
+++ b/src/date.c
@@ -75,11 +75,12 @@ static struct option const long_options[] =
/* Parse each line in INPUT_FILENAME as with --date and display the
each resulting time and date. If the file cannot be opened, tell why
then exit. Issue a diagnostic for any lines that cannot be parsed.
- If any line cannot be parsed, return non-zero; otherwise return zero.
- */
+ If any line cannot be parsed, return non-zero; otherwise return zero. */
static int
-batch_convert (const char *input_filename, const char *format)
+batch_convert (input_filename, format)
+ const char *input_filename;
+ const char *format;
{
int have_read_stdin;
int status;
@@ -217,11 +218,11 @@ non-option argument must be a format string beginning with `+'");
if (set_date || print_date)
{
error (0, 0, "\
-the print and set options may not be used when reading dates from a file");
+neither print nor set options may be used when reading dates from a file");
usage (1);
}
status = batch_convert (batch_file,
- (n_args == 1 ? argv[optind] : NULL));
+ (n_args == 1 ? argv[optind] + 1 : NULL));
}
else
{