[Freeipa-devel] [PATCH 0149] Clean up PTR record synchronization code and make it more robust

Simo Sorce simo at redhat.com
Mon May 13 14:49:02 UTC 2013


On Mon, 2013-05-13 at 16:32 +0200, Petr Spacek wrote:
> +       if ((ip = inet_addr(ip_str)) == INADDR_NONE) {


This kind of construct is hard to read and debug in gdb
I would suggest you do:
ip = inet_addr(ip_str);
if (ip == INADDER_NONE) {


Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list