From: Ronnie Sahlberg Date: Sun, 9 Oct 2011 04:22:05 +0000 (+1100) Subject: Change remaining "struct AUTH *" to "AUTH *" X-Git-Tag: upstream/1.9.6^2~289 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8704724f83ab18891c1e4375e02fd9e53377953c;hp=7bd7041bd8270555b8b1ab99259cda287c442195;p=deb_libnfs.git Change remaining "struct AUTH *" to "AUTH *" --- 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; }