X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=blobdiff_plain;f=examples%2Fportmap-client.c;h=cae90d7a72f5b4fab5904926e3b3edf08be5a085;hp=a7cf7c23521d64599cf48d97aab42a94feda208e;hb=2db42ce2fc89bc88050564037688888bbb8876e9;hpb=ea20b4ec24c2206ddabfe240025fbe383142623a diff --git a/examples/portmap-client.c b/examples/portmap-client.c index a7cf7c2..cae90d7 100644 --- a/examples/portmap-client.c +++ b/examples/portmap-client.c @@ -40,7 +40,6 @@ #include #include #include -#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) {