httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: New compile warning this AM
Date Sun, 22 Mar 1998 01:16:45 GMT
On Sat, 21 Mar 1998, Jim Jagielski wrote:

> Marc Slemko wrote:
> > 
> > On Sat, 21 Mar 1998, Jim Jagielski wrote:
> > 
> > > Marc Slemko wrote:
> > > > 
> > > > I shall die before I cast a pid to unsigned long on a platform where it
> > > > may not be valid!
> > > > 
> > > 
> > > Please explain, exactly, how getpid() could return a value that would
> > > be non-valid if cast to unsigned long? This could ONLY happen if
> > > getpid() returned an integer number greater than unsigned long OR
> > > returned a signed value. If the former, then there is NO WAY to
> > > have any printf() function handle it, since they only allow 'lu'
> > 
> > Why not?  My printf handles "qu".  
> 
> Yep.... And then we'd need a test to see if the printf() handles
> that as well :)

If a system is supporting datatypes longer than longs, it will normally
have some way to print it.

And anyway, all we have to do is implement it in ap_snprintf.


Mime
View raw message