mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
(scm_current_time): 'time' does not set errno so don't use
SCM_SYSERROR for reporting errors.
This commit is contained in:
parent
e17d318faa
commit
2d99b584ac
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ SCM_DEFINE (scm_current_time, "current-time", 0, 0, 0,
|
||||||
|
|
||||||
SCM_DEFER_INTS;
|
SCM_DEFER_INTS;
|
||||||
if ((timv = time (0)) == -1)
|
if ((timv = time (0)) == -1)
|
||||||
SCM_SYSERROR;
|
SCM_MISC_ERROR ("current time not available", SCM_EOL);
|
||||||
SCM_ALLOW_INTS;
|
SCM_ALLOW_INTS;
|
||||||
return scm_long2num((long) timv);
|
return scm_long2num((long) timv);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue