summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-02-21 08:14:13 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-02-21 08:14:13 +0000
commit1b29344371cff6153ada28f3d8487fbdf3ffe412 (patch)
tree6756da427edd73050f7f906a5900b0981e884158 /src
parent7fd8ef9cc1253890d15574bae60c1a1561a72672 (diff)
downloadcoreutils-1b29344371cff6153ada28f3d8487fbdf3ffe412.tar.xz
(main): gettime now returns void.
Diffstat (limited to 'src')
-rw-r--r--src/date.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/date.c b/src/date.c
index 2c79a08c1..750c63c86 100644
--- a/src/date.c
+++ b/src/date.c
@@ -1,5 +1,5 @@
/* date - print or set the system date and time
- Copyright (C) 1989-2004 Free Software Foundation, Inc.
+ Copyright (C) 1989-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -424,8 +424,7 @@ argument must be a format string beginning with `+'."),
{
/* Prepare to print the current date/time. */
datestr = _("undefined");
- if (gettime (&when) != 0)
- error (EXIT_FAILURE, errno, _("cannot get time of day"));
+ gettime (&when);
format = (n_args == 1 ? argv[optind] + 1 : NULL);
}
}