summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-02-21 08:17:00 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-02-21 08:17:00 +0000
commit3178b01865775a0428941986d40f9e9b29118004 (patch)
treefc8958519de1791a8c4727756cd50da1f82f4ead
parent2ec39c3ada018a04eec591378a43f1e0287d6423 (diff)
downloadcoreutils-3178b01865775a0428941986d40f9e9b29118004.tar.xz
(time): Remove obsolete decl.
(main): Gettime now returns void.
-rw-r--r--src/touch.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/touch.c b/src/touch.c
index 62054a72d..ff5a0cd0f 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -1,5 +1,5 @@
/* touch -- change modification and access times of files
- Copyright (C) 87, 1989-1991, 1995-2004 Free Software Foundation, Inc.
+ Copyright (C) 87, 1989-1991, 1995-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
@@ -39,10 +39,6 @@
#define AUTHORS \
"Paul Rubin", "Arnold Robbins, Jim Kingdon, David MacKenzie", "Randy Smith"
-#ifndef STDC_HEADERS
-time_t time ();
-#endif
-
/* Bitmasks for `change_times'. */
#define CH_ATIME 1
#define CH_MTIME 2
@@ -396,8 +392,7 @@ main (int argc, char **argv)
amtime_now = true;
else
{
- if (gettime (&newtime[0]) != 0)
- error (EXIT_FAILURE, errno, _("cannot get time of day"));
+ gettime (&newtime[0]);
newtime[1] = newtime[0];
}
}