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++) {
}
int
-nfs_addmntent (mntFILE *mfp, nfs_mntent_t *mnt) {
+nfs_addmntent (mntFILE *mfp, struct mntent *mnt) {
char *m1, *m2, *m3, *m4;
int res;
}
/* 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: