From a64b65aac7af65f96a24cd89fc07a31dbb5980ab Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 16 Mar 2007 18:26:37 +1100 Subject: Remove nfs_mntent_t in favour of struct mntent They are identical and the later allows us to use hasmntent. --- support/include/nfs_mntent.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'support/include/nfs_mntent.h') diff --git a/support/include/nfs_mntent.h b/support/include/nfs_mntent.h index 76f348e..010df24 100644 --- a/support/include/nfs_mntent.h +++ b/support/include/nfs_mntent.h @@ -5,15 +5,7 @@ #ifndef _NFS_MNTENT_H #define _NFS_MNTENT_H - -typedef struct nfs_mntent_s { - const char *mnt_fsname; - const char *mnt_dir; - const char *mnt_type; - const char *mnt_opts; - int mnt_freq; - int mnt_passno; -} nfs_mntent_t; +#include #define ERR_MAX 5 @@ -27,8 +19,8 @@ typedef struct mntFILEstruct { mntFILE *nfs_setmntent (const char *file, char *mode); void nfs_endmntent (mntFILE *mfp); -int nfs_addmntent (mntFILE *mfp, nfs_mntent_t *mnt); +int nfs_addmntent (mntFILE *mfp, struct mntent *mnt); struct nfs_mntent *my_getmntent (mntFILE *mfp); -nfs_mntent_t *nfs_getmntent (mntFILE *mfp); +struct mntent *nfs_getmntent (mntFILE *mfp); #endif /* _NFS_MNTENT_H */ -- cgit