diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-02-21 08:08:38 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-02-21 08:08:38 +0000 |
commit | fa5269cf6f32de75c0f5aeb4e5945f0c3b687db6 (patch) | |
tree | 445310c7fa64685fef18629963071ac2315874d4 /lib/getdate.y | |
parent | 2df160349ebf9ad63378b3d8090f1f4bbf841b5e (diff) | |
download | coreutils-fa5269cf6f32de75c0f5aeb4e5945f0c3b687db6.tar.xz |
(get_date): gettime now returns void, not int.
Diffstat (limited to 'lib/getdate.y')
-rw-r--r-- | lib/getdate.y | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index 4c59334bc..57374f1d4 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; } |