* libc/time/gmtime_r.c (gmtime_r): Remove dead code.

This commit is contained in:
Corinna Vinschen 2014-10-20 07:30:17 +00:00
parent cc5a7d7519
commit 2a126568ad
2 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2014-10-20 Freddie Chopin <freddie_chopin@op.pl>
* libc/time/gmtime_r.c (gmtime_r): Remove dead code.
2014-10-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/unix/getcwd.c (getcwd): Close directory also in case of an error.

View File

@ -47,11 +47,6 @@ _DEFUN (gmtime_r, (tim_p, res),
rem += SECSPERDAY;
--days;
}
while (rem >= SECSPERDAY)
{
rem -= SECSPERDAY;
++days;
}
/* compute hour, min, and sec */
res->tm_hour = (int) (rem / SECSPERHOUR);