OSDN Git Service

Bionic: Libc: Resolv: Stricter function signatures, unitialized return bug fix.
authorSasha Levitskiy <sanek@google.com>
Wed, 27 Feb 2013 23:48:55 +0000 (15:48 -0800)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 28 Feb 2013 18:46:54 +0000 (18:46 +0000)
commitfbae9f3c30c869ca2fe8609f2d680430f543f0e6
treecbd2d5046e7828ca80cd551cd814f17fae5a52ef
parent6e1a5cf31ba47508b08dba02a45b4ea6e1edd6d2
Bionic: Libc: Resolv: Stricter function signatures, unitialized return bug fix.

Stricter input parameters help avoid ugly casting when passing
pointers to immutable protobuf data.
While at it: an int return was dropped from 2 functions whose users
never used the result; one of the return paths was returning an
uninitialized value.
Size_t for portablity and warning supression, misc warnings addressed.

Change-Id: I2d5cbdaf0c9b6c4621a7d397772da13da5dc0943
libc/netbsd/resolv/res_cache.c
libc/private/resolv_cache.h
libc/private/resolv_iface.h