ZDR: remove dependency on zdr.h from the examples and nfs-ls
[deb_libnfs.git] / examples / portmap-client.c
index a7cf7c23521d64599cf48d97aab42a94feda208e..cae90d7a72f5b4fab5904926e3b3edf08be5a085 100644 (file)
@@ -40,7 +40,6 @@
 #include <string.h>
 #include <sys/socket.h>
 #include <time.h>
-#include "libnfs-zdr.h"
 #include "libnfs.h"
 #include "libnfs-raw.h"
 #include "libnfs-raw-mount.h"
@@ -216,7 +215,7 @@ void pmap3_uaddr2taddr_cb(struct rpc_context *rpc, int status, void *data, void
        printf("\n");
        printf("        ---\n");
        ss = (struct sockaddr_storage *)&nb->buf.buf_val[0];
-       getnameinfo((struct sockaddr *)ss, sizeof(struct sockaddr_in6),
+       getnameinfo((struct sockaddr *)ss, sizeof(struct sockaddr_storage),
                &host[0], sizeof(host), &port[0], sizeof(port),
                NI_NUMERICHOST|NI_NUMERICSERV);
        switch (ss->ss_family) {