1
Fork 0
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:
Marius Vollmer 2003-09-16 21:18:26 +00:00
parent e17d318faa
commit 2d99b584ac

View file

@ -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);
} }