ctdb-system: Replace ctdb_logging.h with common/logging.h
[obnox/samba/samba-obnox.git] / ctdb / common / system_util.c
index 1ae0bae80396ea8d28e38ca8ee61c6138ebab867..81aa00bfc9dc5121fae28b25d86a8f57ea8c6445 100644 (file)
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "includes.h"
+#include "replace.h"
 #include "system/filesys.h"
 #include "system/shmem.h"
+#include "system/network.h"
 
 #include <libgen.h>
 
+#include "lib/util/debug.h"
+
 #include "ctdb_private.h"
 
+#include "common/logging.h"
+#include "common/system.h"
+
 #if HAVE_SCHED_H
 #include <sched.h>
 #endif
@@ -157,7 +163,7 @@ bool parse_ipv4(const char *s, unsigned port, struct sockaddr_in *sin)
        }
 
 #ifdef HAVE_SOCK_SIN_LEN
-       sin->ip.sin_len = sizeof(*sin);
+       sin->sin_len = sizeof(*sin);
 #endif
        return true;
 }