summaryrefslogtreecommitdiff
path: root/src/touch.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-30 23:04:53 +0000
committerJim Meyering <jim@meyering.net>2002-08-30 23:04:53 +0000
commit74887031996e79df07dae9711f08d80839b31e62 (patch)
treed249c7ea293b5540ca108f3b40733401544b29ba /src/touch.c
parent6c80ecd8d5d3a0642f8cf321f9750f50314ea939 (diff)
downloadcoreutils-74887031996e79df07dae9711f08d80839b31e62.tar.xz
Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
Diffstat (limited to 'src/touch.c')
-rw-r--r--src/touch.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/touch.c b/src/touch.c
index 2cbe7614f..836277eee 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -302,7 +302,7 @@ main (int argc, char **argv)
flexible_date++;
newtime = get_date (optarg, NULL);
if (newtime == (time_t) -1)
- error (1, 0, _("invalid date format %s"), quote (optarg));
+ error (EXIT_FAILURE, 0, _("invalid date format %s"), quote (optarg));
date_set++;
break;
@@ -322,7 +322,7 @@ main (int argc, char **argv)
posix_date++;
if (! posixtime (&newtime, optarg,
PDS_LEADING_YEAR | PDS_CENTURY | PDS_SECONDS))
- error (1, 0, _("invalid date format %s"), quote (optarg));
+ error (EXIT_FAILURE, 0, _("invalid date format %s"), quote (optarg));
date_set++;
break;
@@ -353,7 +353,8 @@ main (int argc, char **argv)
if (use_ref)
{
if (stat (ref_file, &ref_stats))
- error (1, errno, _("failed to get attributes of %s"), quote (ref_file));
+ error (EXIT_FAILURE, errno,
+ _("failed to get attributes of %s"), quote (ref_file));
date_set++;
}