Re: [PATCH netcfg] debug: use gai_strerror() on getnameinfo() failure

2013-01-08 Thread Philipp Kern
On Wed, Jan 09, 2013 at 12:02:41AM +0100, Julien Cristau wrote: > getnameinfo() returns an error code which can be passed to > gai_strerror() for human consumption. So use that instead of > strerror(errno) unless the code is EAI_SYSTEM. Makes sense. Applied, thank you! Kind regards Philipp Kern

[PATCH netcfg] debug: use gai_strerror() on getnameinfo() failure

2013-01-08 Thread Julien Cristau
getnameinfo() returns an error code which can be passed to gai_strerror() for human consumption. So use that instead of strerror(errno) unless the code is EAI_SYSTEM. Signed-off-by: Julien Cristau Cc: Philipp Kern --- netcfg-common.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)