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
This commit is contained in:
Sasha Levitskiy
2013-02-27 15:48:55 -08:00
committed by Android (Google) Code Review
parent 6e1a5cf31b
commit fbae9f3c30
3 changed files with 41 additions and 38 deletions

View File

@@ -48,7 +48,7 @@ __BEGIN_DECLS
extern void _resolv_set_default_iface(const char* ifname);
/* set name servers for an interface */
extern void _resolv_set_nameservers_for_iface(const char* ifname, char** servers, int numservers,
extern void _resolv_set_nameservers_for_iface(const char* ifname, const char** servers, int numservers,
const char *domains);
/* tell resolver of the address of an interface */