X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-sync.c;h=0985acdbf61c233e36f147d0b4d42a15b4b32b30;hb=e78e413d8e9db60869f3a91903f3552a7b281fcc;hp=9ca58b467c8461f97c9043d1fcc120d2edd0416c;hpb=67a9f57e67c3b2c147969c752532fd55eb99259c;p=deb_libnfs.git diff --git a/examples/nfsclient-sync.c b/examples/nfsclient-sync.c index 9ca58b4..0985acd 100644 --- a/examples/nfsclient-sync.c +++ b/examples/nfsclient-sync.c @@ -52,7 +52,6 @@ WSADATA wsaData; #include #include #include -#include "libnfs-zdr.h" #include "libnfs.h" #include "libnfs-raw.h" #include "libnfs-raw-mount.h" @@ -163,7 +162,7 @@ int main(int argc, char *argv[]) ret = nfs_opendir(nfs, "/", &nfsdir); if (ret != 0) { - printf("Failed to opendir(\"/\")\n", nfs_get_error(nfs)); + printf("Failed to opendir(\"/\") %s\n", nfs_get_error(nfs)); exit(10); } while((nfsdirent = nfs_readdir(nfs, nfsdir)) != NULL) { @@ -212,7 +211,7 @@ int main(int argc, char *argv[]) "-w"[!!(st.st_mode & S_IWOTH)], "-x"[!!(st.st_mode & S_IXOTH)] ); - printf(" %2d", st.st_nlink); + printf(" %2d", (int)st.st_nlink); printf(" %5d", st.st_uid); printf(" %5d", st.st_gid); printf(" %12" PRId64, st.st_size);