Use uint32_t, rather than the C type long
This commit is contained in:
parent
327b4f97a4
commit
9cda41f5e9
@ -98,7 +98,7 @@ uint16_t DevInfoParser::getHwVersion()
|
|||||||
/* struct tm to seconds since Unix epoch */
|
/* struct tm to seconds since Unix epoch */
|
||||||
time_t DevInfoParser::timegm(struct tm* t)
|
time_t DevInfoParser::timegm(struct tm* t)
|
||||||
{
|
{
|
||||||
register long year;
|
register uint32_t year;
|
||||||
register time_t result;
|
register time_t result;
|
||||||
#define MONTHSPERYEAR 12 /* months per calendar year */
|
#define MONTHSPERYEAR 12 /* months per calendar year */
|
||||||
static const int cumdays[MONTHSPERYEAR] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
|
static const int cumdays[MONTHSPERYEAR] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user