X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfs-cp.c;h=bbd136a91c1dbddfbf4f7123df0ded70ac02b74a;hb=2db42ce2fc89bc88050564037688888bbb8876e9;hp=62724dfefe4ed00c3dd1bcfb79b7726ef8e57d89;hpb=82f5df21eb05b0e3299616a56dc0c25c40a777f4;p=deb_libnfs.git diff --git a/examples/nfs-cp.c b/examples/nfs-cp.c index 62724df..bbd136a 100644 --- a/examples/nfs-cp.c +++ b/examples/nfs-cp.c @@ -49,7 +49,6 @@ WSADATA wsaData; #include #include #include -#include "libnfs-zdr.h" #include "libnfs.h" #include "libnfs-raw.h" #include "libnfs-raw-mount.h" @@ -132,6 +131,7 @@ open_file(const char *url, int flags) file_context->fd = -1; file_context->nfs = NULL; file_context->nfsfh = NULL; + file_context->url = NULL; if (strncmp(url, "nfs://", 6)) { file_context->is_nfs = 0; @@ -260,7 +260,7 @@ int main(int argc, char *argv[]) off += count; } - printf("copied %d bytes\n", (int)count); + printf("copied %d bytes\n", (int)off); free_file_context(src); free_file_context(dst);