Skip to content

Commit

Permalink
Merge pull request #19 from Memphiz/auth2
Browse files Browse the repository at this point in the history
[fix] - fix improper definition of struct AUTH from osx (caution - API ch
  • Loading branch information
sahlberg committed Oct 8, 2011
2 parents acf31bb + fa33813 commit 7bd7041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/libnfs.h
Expand Up @@ -18,6 +18,7 @@
* This is the highlevel interface to access NFS resources using a posix-like interface
*/
#include <stdint.h>
#include <rpc/rpc.h>
#include <rpc/auth.h>

struct nfs_context;
Expand Down Expand Up @@ -63,7 +64,7 @@ EXTERN int nfs_queue_length(struct nfs_context *nfs);
/*
* Used if you need different credentials than the default for the current user.
*/
EXTERN void nfs_set_auth(struct nfs_context *nfs, struct AUTH *auth);
EXTERN void nfs_set_auth(struct nfs_context *nfs, AUTH *auth);


/*
Expand Down
2 changes: 1 addition & 1 deletion lib/libnfs.c
Expand Up @@ -111,7 +111,7 @@ struct nfs_mcb_data {
static int nfs_lookup_path_async_internal(struct nfs_context *nfs, struct nfs_cb_data *data, struct nfs_fh3 *fh);


void nfs_set_auth(struct nfs_context *nfs, struct AUTH *auth)
void nfs_set_auth(struct nfs_context *nfs, AUTH *auth)
{
rpc_set_auth(nfs->rpc, auth);
}
Expand Down

0 comments on commit 7bd7041

Please sign in to comment.