diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-09 21:08:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-09 21:08:12 +0000 |
commit | 278810348aa565008867ed07d7737653fe68f91d (patch) | |
tree | 53ea35b13f3f7f23460a860bd7f6bebb5ed7e1e8 /libc/misc | |
parent | db777744aa07d47a571016b48fea82e53371fe2b (diff) |
Doh! I broke getmntent when I added getmntent_r! This fixes it.
-Erik
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/mntent/mntent.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libc/misc/mntent/mntent.c b/libc/misc/mntent/mntent.c index ea5cf23d8..82a7e70d1 100644 --- a/libc/misc/mntent/mntent.c +++ b/libc/misc/mntent/mntent.c @@ -32,26 +32,21 @@ struct mntent *getmntent_r (FILE *filep, if (mnt->mnt_fsname == NULL) return NULL; - ptrptr = 0; mnt->mnt_dir = strtok_r(NULL, sep, &ptrptr); if (mnt->mnt_dir == NULL) return NULL; - ptrptr = 0; mnt->mnt_type = strtok_r(NULL, sep, &ptrptr); if (mnt->mnt_type == NULL) return NULL; - ptrptr = 0; mnt->mnt_opts = strtok_r(NULL, sep, &ptrptr); if (mnt->mnt_opts == NULL) mnt->mnt_opts = ""; - ptrptr = 0; cp = strtok_r(NULL, sep, &ptrptr); mnt->mnt_freq = (cp != NULL) ? atoi(cp) : 0; - ptrptr = 0; cp = strtok_r(NULL, sep, &ptrptr); mnt->mnt_passno = (cp != NULL) ? atoi(cp) : 0; |