]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/nfs/nfs_mntent.c
nfs-utils: remove unused function rpc_logcall()
[nfs-utils.git] / support / nfs / nfs_mntent.c
index b407d6844cbe08f3aa040c4b5b24b7a2ecf7c824..a3fecfc05d8604c9334300c9a1a48fe0102d0a2c 100644 (file)
 static unsigned char need_escaping[] = { ' ', '\t', '\n', '\\' };
 
 static char *
-mangle(const unsigned char *s) {
+mangle(const char *arg) {
+       const unsigned char *s = (const unsigned char *)arg;
        char *ss, *sp;
        int n;
 
-       n = strlen(s);
+       n = strlen(arg);
        ss = sp = xmalloc(4*n+1);
        while(1) {
                for (n = 0; n < sizeof(need_escaping); n++) {
@@ -123,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;
 
@@ -146,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: