[Asterisk-Dev] Re: ast_localtime() weird interface.

Dinesh Nair dinesh at alphaque.com
Wed Oct 12 11:16:01 MST 2005


On 10/13/05 00:44 Tilghman Lesher said the following:
> On Wednesday 12 October 2005 09:42, Luigi Rizzo wrote:
>>The point is, if we use different types (such as time_t and struct
>>timeval's tv_sec), then we cannot complain because they _really_ are
>>different on a given platform.
> 
> On my given platform, they're the same size.  Why is it that a broken
> platform should trump a sane platform?  Why not fix the brokenness
> and let it be sane once again, everywhere?

i believe luigi was coming from the angle that we cant really predict how 
different operating systems' have different sizes for the same 
struct/member. it'd be better to have asterisk be platform independent in 
this regard and try to support this than otherwise.

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+



More information about the asterisk-dev mailing list