From 3178b01865775a0428941986d40f9e9b29118004 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 21 Feb 2005 08:17:00 +0000 Subject: (time): Remove obsolete decl. (main): Gettime now returns void. --- src/touch.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/touch.c') 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]; } } -- cgit v1.2.3-54-g00ecf