X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fexportfs.h;h=c1ba54357fa677f9d9eb48cb5e2517ff8d63a0c3;hp=431b5ce7701c0036668d8a61b31367f7b654c44f;hb=180238a295c1a8127953c96f0b462688d0f57a09;hpb=e3f2d2262fed12f0f6b77c5ac1c4072d82f1e754 diff --git a/support/include/exportfs.h b/support/include/exportfs.h index 431b5ce..c1ba543 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -32,7 +32,7 @@ enum { typedef struct mclient { struct mclient * m_next; - char m_hostname[NFSCLNT_IDMAX+1]; + char * m_hostname; int m_type; int m_naddr; struct in_addr m_addrlist[NFSCLNT_ADDRMAX]; @@ -64,7 +64,8 @@ int client_check(nfs_client *, struct hostent *); int client_match(nfs_client *, char *hname); void client_release(nfs_client *); void client_freeall(void); -char * client_compose(struct in_addr addr); +char * client_compose(struct hostent *he); +struct hostent * client_resolve(struct in_addr addr); int client_member(char *client, char *name); int export_read(char *fname);