httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject Re: svn commit: r293305 - in /httpd/httpd/branches/2.2.x/modules:
Date Tue, 04 Oct 2005 16:12:14 GMT
Brian Candler wrote:
> Hmm. Given the example
>     pid = (pid_t)((long)apr_hash_get(script_hash, &cgid_req.conn_id, sizeof(cgid_req.conn_id)));
> then it's no good declaring variable 'pid' to be of type apr_intptr_t rather
> than pid_t, because somewhere down the line it will be passed to a function
> which expects a pid_t argument, and you'll get a warning there instead. Are
> you saying it should be written as

The above line just confuses me, but I haven't taken the time
to try to understand the rationale for why it's written the way it is.

 Jim Jagielski   [|]   [|]
           "If you can dodge a wrench, you can dodge a ball."

View raw message