Update plibc header
[oweals/gnunet.git] / src / util / os_network.c
index 01fe5f7dc10dde7496efa3223897ed2f133fa298..f0f66918e28ed6f3cb7e8015c5e469bcb3da9ac3 100644 (file)
@@ -4,7 +4,7 @@
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 2, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
  * @author Jake Dust
  * @author LRN
  */
-
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_os_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
@@ -60,10 +58,12 @@ GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc,
   {
     if (GNUNET_OK !=
         proc (proc_cls, results[i].pretty_name, results[i].is_default,
-              &results[i].address,
+              (const struct sockaddr *) &results[i].address,
               results[i].
-              flags & ENUMNICS3_BCAST_OK ? &results[i].broadcast : NULL,
-              results[i].flags & ENUMNICS3_MASK_OK ? &results[i].mask : NULL,
+              flags & ENUMNICS3_BCAST_OK ?
+              (const struct sockaddr *) &results[i].broadcast : NULL,
+              results[i].flags & ENUMNICS3_MASK_OK ?
+              (const struct sockaddr *) &results[i].mask : NULL,
               results[i].addr_size))
       break;
   }
@@ -250,7 +250,7 @@ GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc,
 
           pass_netmask = (struct sockaddr *) &netmask6;
         }
-        
+
         if (GNUNET_OK !=
             proc (proc_cls, ifc, 0 == strcmp (ifc, GNUNET_DEFAULT_INTERFACE),
                   (const struct sockaddr *) &a6,