X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fnfs%2Fnfs_mntent.c;h=a5216fcf829cdf2e7e1c5524e0bb750eaa53fa43;hp=d1d124bcac6efa8b68937dc1db2bf66a860fcadc;hb=5c498280fd9353ded3ea169841079bdae23418e2;hpb=6c40236820fda8960af891f41aa9d53f8bbe50a2 diff --git a/support/nfs/nfs_mntent.c b/support/nfs/nfs_mntent.c index d1d124b..a5216fc 100644 --- a/support/nfs/nfs_mntent.c +++ b/support/nfs/nfs_mntent.c @@ -1,7 +1,7 @@ /* Private version of the libc *mntent() routines. */ /* Note slightly different prototypes. */ -/* 1999-02-22 Arkadiusz Mi¶kiewicz +/* 1999-02-22 Arkadiusz Miskiewicz * - added Native Language Support * * 2006-06-08 Amit Gud @@ -28,7 +28,7 @@ static char * mangle(const char *arg) { const unsigned char *s = (const unsigned char *)arg; char *ss, *sp; - int n; + unsigned int n; n = strlen(arg); ss = sp = xmalloc(4*n+1); @@ -124,7 +124,7 @@ nfs_endmntent (mntFILE *mfp) { } int -nfs_addmntent (mntFILE *mfp, nfs_mntent_t *mnt) { +nfs_addmntent (mntFILE *mfp, struct mntent *mnt) { char *m1, *m2, *m3, *m4; int res; @@ -147,10 +147,10 @@ nfs_addmntent (mntFILE *mfp, nfs_mntent_t *mnt) { } /* Read the next entry from the file fp. Stop reading at an incorrect entry. */ -nfs_mntent_t * +struct mntent * nfs_getmntent (mntFILE *mfp) { static char buf[4096]; - static nfs_mntent_t me; + static struct mntent me; char *s; again: