Clean up signedness confusion in time.c

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-09 18:59:26 -08:00
parent c63f14eefc
commit 349c27a96e

View file

@ -11,16 +11,16 @@
*/
void utc_mkdate(timestamp_t timestamp, struct tm *tm)
{
static const int mdays[] = {
static const unsigned int mdays[] = {
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
};
static const int mdays_leap[] = {
static const unsigned int mdays_leap[] = {
31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
};
unsigned long val;
unsigned int leapyears;
int m;
const int *mp;
const unsigned int *mp;
memset(tm, 0, sizeof(*tm));