Question about getaddrinfo in Inet4AddressImpl.c (original) (raw)
Charles Lee littlee at linux.vnet.ibm.com
Mon Nov 14 22:57:12 PST 2011
- Previous message: Question about getaddrinfo in Inet4AddressImpl.c
- Next message: Question about getaddrinfo in Inet4AddressImpl.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 11/14/2011 10:15 PM, Chris Hegarty wrote:
I agree with Mikes comments, and here are a few of trivial ones of my own.
- 'struct sockaddrin6 him6' here is unused in getHostByAddr - caddr[16] - > caddr[4] in getHostByAddr Thanks for making this change. It really cleans up this old code. It is not your fault as the same is in Inet6AddressImpl, but I do see warnings building this: "../../../src/solaris/native/java/net/Inet4AddressImpl.c", line 70: warning: declaration can not follow a statement "../../../src/solaris/native/java/net/Inet4AddressImpl.c", line 71: warning: declaration can not follow a statement If you have the time maybe you could resolve these? Thanks, -Chris. On 14/11/2011 05:41, Charles Lee wrote: On 11/12/2011 04:07 AM, Mike Duigou wrote:
Some comments:
Inet4AddressImpl.c: - why use bzero rather than posix memset? - MAXHOSTNAMELEN is used. Shouldn't this be NIMAXHOST as in the Inet6 version? Mike
On Nov 11 2011, at 06:53 , Neil Richards wrote: On Wed, 2011-11-09 at 12:19 +0800, Charles Lee wrote: On 11/09/2011 03:25 AM, Chris Hegarty wrote: Charles,
Is it possible to fix up the style issues, etc that Neil pointed out, and have the webrev updated? Hi Chris, Here it is. (attached) And here it is, in webrev form [1]. Regards, Neil [1] http://cr.openjdk.java.net/~ngmr/ojdk-229/webrev.01/ -- Unless stated above: IBM email: neilrichards at uk.ibm.com IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU I will change the patch: 1. bzero(&hints, sizeof(hints)) ---> memset(&hints, 0, sizeof(hints)) (2 in Inet4AddressImpl, 2 in Inet6AddressImpl) 2. MAXHOSTNAMELEN in getaddrinfo in Inet4AddressImpl to NIMAXHOST. Thanks for the review, Mike. Sigh. Chris, I still fail to see those warnings, even if I do a very clean remove of my build directory and rebuild the whole jdk ....
Here is the new (big) patch(attached) according to the comments from you and Mike. Thank you guys :-)
-- Yours Charles
-------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch.contr Url: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20111115/d15fefd5/patch.contr
- Previous message: Question about getaddrinfo in Inet4AddressImpl.c
- Next message: Question about getaddrinfo in Inet4AddressImpl.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]