FW: Definition of time_t changed from signed to unsigned...

Olson, Arthur David (NIH/NCI) olsona at dc37a.nci.nih.gov
Mon Jul 12 13:46:06 UTC 2004


Chris Richards is not on the time zone mailing list; direct replies
appropriately.

				--ado 

-----Original Message-----
From: Chris Richards [mailto:cj_richards at hotmail.com] 
Sent: Friday, July 09, 2004 9:53 AM
To: tz at lecserver.nci.nih.gov
Subject: Definition of time_t changed from signed to unsigned...

Hello,

I am in the process of upgrading the kernel version on a platform that I
work on. I noticed that the time_t definition has been changed in the newer
version of the OS. It used to be a simple "long". But it is now an "unsigned
long". Basically it changed from a signed to an unsigned definition.

The problem is that the timezone subsystem seems to expect time_t to be
signed. There are a number of functions that only work if time_t is signed. 
E.g. function localsub() in file localtime.c.

My question is: am I just using an obsolete version of the timezone source
or should I just change the time_t typedef in the OS?

I quickly scanned the latest source of localtime.c and did not see any
changes regarding to how time_t is declared.

Thanks in advance,
Chris.

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page - FREE
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/



More information about the tz mailing list