From: Paul Eggert Date: Mon, 21 Feb 2005 08:08:38 +0000 (+0000) Subject: (get_date): gettime now returns void, not int. X-Git-Tag: CPPI-1_12~1442 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa5269cf6f32de75c0f5aeb4e5945f0c3b687db6;p=thirdparty%2Fcoreutils.git (get_date): gettime now returns void, not int. --- diff --git a/lib/getdate.y b/lib/getdate.y index 4c59334bc3..57374f1d4f 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -1,6 +1,8 @@ %{ /* Parse a string into an internal time stamp. - Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 1999, 2000, 2002, 2003, 2004, 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 @@ -1125,8 +1127,7 @@ get_date (struct timespec *result, char const *p, struct timespec const *now) if (! now) { - if (gettime (&gettime_buffer) != 0) - return false; + gettime (&gettime_buffer); now = &gettime_buffer; }