ZDR: New builtin replacement for RPC/XDR called ZDR
[deb_libnfs.git] / lib / init.c
index 93c3745db446ae57483466401e8ba4ba4b32c647..6bbc11b09f8395f3a8da9ef45f67ba34ef43d8f9 100644 (file)
@@ -24,9 +24,8 @@
 #include <stdarg.h>
 #include <string.h>
 #include <stdlib.h>
-#include <rpc/rpc.h>
-#include <rpc/xdr.h>
 #include "slist.h"
+#include "libnfs-zdr.h"
 #include "libnfs.h"
 #include "libnfs-raw.h"
 #include "libnfs-private.h"
@@ -77,12 +76,12 @@ struct rpc_context *rpc_init_udp_context(void)
        return rpc;
 }
 
-void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth)
+void rpc_set_auth(struct rpc_context *rpc, 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;