repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZDR: remove dependency on zdr.h from the examples and nfs-ls
[deb_libnfs.git]
/
examples
/
portmap-client.c
diff --git
a/examples/portmap-client.c
b/examples/portmap-client.c
index a7cf7c23521d64599cf48d97aab42a94feda208e..cae90d7a72f5b4fab5904926e3b3edf08be5a085 100644
(file)
--- a/
examples/portmap-client.c
+++ b/
examples/portmap-client.c
@@
-40,7
+40,6
@@
#include <string.h>
#include <sys/socket.h>
#include <time.h>
#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"
#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];
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) {
&host[0], sizeof(host), &port[0], sizeof(port),
NI_NUMERICHOST|NI_NUMERICSERV);
switch (ss->ss_family) {