diff options
author | Alan Eldridge <alane@FreeBSD.org> | 2002-09-10 14:14:02 +0000 |
---|---|---|
committer | Alan Eldridge <alane@FreeBSD.org> | 2002-09-10 14:14:02 +0000 |
commit | ff4b894d1c2379768564013da6ceee3c34449ab1 (patch) | |
tree | 14f2ffb47694bd8a5809fbefce872c5106986fc9 /devel/fam | |
parent | f593f06ed23ebe54b9a07a1365b2053354efea92 (diff) | |
download | ports-ff4b894d1c2379768564013da6ceee3c34449ab1.tar.gz ports-ff4b894d1c2379768564013da6ceee3c34449ab1.zip |
Notes
Diffstat (limited to 'devel/fam')
-rw-r--r-- | devel/fam/files/mntent_compat.c++ | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/fam/files/mntent_compat.c++ b/devel/fam/files/mntent_compat.c++ index 947a1ed950e7..ae8768030d54 100644 --- a/devel/fam/files/mntent_compat.c++ +++ b/devel/fam/files/mntent_compat.c++ @@ -42,7 +42,7 @@ struct statfs *G_pmntstat = 0; struct optmap { int fl; - string st; + std::string st; }; static struct optmap omap[] = { @@ -84,7 +84,7 @@ mntent::from_statfs(struct statfs *pst) strcpy(mnt_type, pst->f_fstypename); mnt_freq = mnt_passno = 0; - string opts; + std::string opts; int fl = pst->f_flags; opts += (fl & MNT_RDONLY) ? "ro" : "rw"; @@ -118,11 +118,11 @@ setmntent(const char *, char *) char * hasmntopt(const mntent *pmnt, const char *szopt) { - string opt(szopt); - string mntopts(pmnt->mnt_opts); + std::string opt(szopt); + std::string mntopts(pmnt->mnt_opts); - string::size_type pos = mntopts.find(opt); - const char *szret = (pos == string::npos) ? "" : pmnt->mnt_opts + pos; + std::string::size_type pos = mntopts.find(opt); + const char *szret = (pos == std::string::npos) ? "" : pmnt->mnt_opts + pos; return const_cast<char *>(szret); } |