httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: [PATCH] Suggestion for HTTP_PROTO(maj,min) macro
Date Thu, 16 Oct 1997 21:30:55 GMT
On Fri, Oct 17, 1997 at 12:13:51AM +0200, Martin Kraemer wrote:
> +    if (2 == sscanf(r->protocol, "HTTP/%u.%u", &major, &minor)
					  ^^ ^^
Are there any platforms which don't eat %u in sscanf? If so,
it can of course be replaced by %d. BTW: Linux sscanf("-3", "%u", &result)
happily converts the "-3" to an ((unsigned) -3), i.e. a _large_
positive number.

    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message