From: Paul Eggert Date: Mon, 21 Feb 2005 08:17:00 +0000 (+0000) Subject: (time): Remove obsolete decl. X-Git-Tag: CPPI-1_12~1430 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3178b01865775a0428941986d40f9e9b29118004;p=thirdparty%2Fcoreutils.git (time): Remove obsolete decl. (main): Gettime now returns void. --- diff --git a/src/touch.c b/src/touch.c index 62054a72d5..ff5a0cd0ff 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]; } }