]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - lib/ipx_ntop.c
Tree wide: Drop sockaddr_nl arg
[mirror_iproute2.git] / lib / ipx_ntop.c
index b2d67902546fb4352a6f517a8afcb1a2925086cb..80b8a34e1a70499a7db495b5e48ec81a3c81fd24 100644 (file)
@@ -1,5 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #include <errno.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
 
 #include "utils.h"
@@ -38,7 +40,7 @@ static const char *ipx_ntop1(const struct ipx_addr *addr, char *str, size_t len)
 
        *(str + pos) = '.';
        pos++;
-       
+
        for(i = 0; i < 6; i++) {
                if (do_digit(str + pos, addr->ipx_node[i], 1, &pos, len))
                        return str;
@@ -67,5 +69,3 @@ const char *ipx_ntop(int af, const void *addr, char *str, size_t len)
 
        return NULL;
 }
-
-