Change remaining "struct AUTH *" to "AUTH *"
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 9 Oct 2011 04:22:05 +0000 (15:22 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 9 Oct 2011 04:22:05 +0000 (15:22 +1100)
include/libnfs-raw.h
lib/init.c

index bc7113306e09e0a3c4e3a182f9ed32312e1682d9..5e445192fff3959132b392d71866128305bff1e4 100644 (file)
@@ -20,6 +20,8 @@
  * protocol as well as the XDR encoded/decoded structures.
  */
 #include <stdint.h>
+#include <rpc/rpc.h>
+#include <rpc/auth.h>
 
 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);
index 93c3745db446ae57483466401e8ba4ba4b32c647..b583663b0d0de4e2a9e66e2ab30c11c3151ccf1a 100644 (file)
@@ -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;
 }