X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Finit.c;h=936cc8b217884b95eea1587756cde3025bd4ac0a;hb=2811861b9634ebc30b3c56afe681f1d3eb0e5060;hp=93c3745db446ae57483466401e8ba4ba4b32c647;hpb=d678b73e4d21fb34f302a65b8bcc340c2accdb96;p=deb_libnfs.git diff --git a/lib/init.c b/lib/init.c index 93c3745..936cc8b 100644 --- a/lib/init.c +++ b/lib/init.c @@ -24,9 +24,8 @@ #include #include #include -#include -#include #include "slist.h" +#include "libnfs-zdr.h" #include "libnfs.h" #include "libnfs-raw.h" #include "libnfs-private.h" @@ -82,7 +81,7 @@ void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth) if (rpc->auth != NULL) { auth_destroy(rpc->auth); } - rpc->auth = (AUTH *)auth; + rpc->auth = auth; } @@ -138,7 +137,7 @@ void rpc_free_all_fragments(struct rpc_context *rpc) } } -int rpc_add_fragment(struct rpc_context *rpc, char *data, size_t size) +int rpc_add_fragment(struct rpc_context *rpc, char *data, uint64_t size) { struct rpc_fragment *fragment;