[Feature][task-view-998]merge P56U10 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: Id05b15148bef69d7b4642d18cc40564e5ef0c9a0
diff --git a/ap/libc/glibc/glibc-2.23/time/offtime.c b/ap/libc/glibc/glibc-2.23/time/offtime.c
index 42ef7d5..b540b2f 100644
--- a/ap/libc/glibc/glibc-2.23/time/offtime.c
+++ b/ap/libc/glibc/glibc-2.23/time/offtime.c
@@ -28,7 +28,7 @@
int
__offtime (const time_t *t, long int offset, struct tm *tp)
{
- long long days, rem, y;
+ time_t days, rem, y;
const unsigned short int *ip;
days = *t / SECS_PER_DAY;
@@ -60,7 +60,7 @@
while (days < 0 || days >= (__isleap (y) ? 366 : 365))
{
/* Guess a corrected year, assuming 365 days per year. */
- long long yg = y + days / 365 - (days % 365 < 0);
+ time_t yg = y + days / 365 - (days % 365 < 0);
/* Adjust DAYS and Y to match the guessed year. */
days -= ((yg - y) * 365