From 8704724f83ab18891c1e4375e02fd9e53377953c Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 9 Oct 2011 15:22:05 +1100 Subject: [PATCH] Change remaining "struct AUTH *" to "AUTH *" --- include/libnfs-raw.h | 5 +++-- lib/init.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/libnfs-raw.h b/include/libnfs-raw.h index bc71133..5e44519 100644 --- a/include/libnfs-raw.h +++ b/include/libnfs-raw.h @@ -20,6 +20,8 @@ * protocol as well as the XDR encoded/decoded structures. */ #include +#include +#include struct rpc_data { int size; @@ -30,8 +32,7 @@ struct rpc_context; struct rpc_context *rpc_init_context(void); void rpc_destroy_context(struct rpc_context *rpc); -struct AUTH; -void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth); +void rpc_set_auth(struct rpc_context *rpc, AUTH *auth); int rpc_get_fd(struct rpc_context *rpc); int rpc_which_events(struct rpc_context *rpc); diff --git a/lib/init.c b/lib/init.c index 93c3745..b583663 100644 --- a/lib/init.c +++ b/lib/init.c @@ -77,12 +77,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; } -- 2.34.1