diff options
author | Ben Laurie <benl@FreeBSD.org> | 2011-06-18 13:56:33 +0000 |
---|---|---|
committer | Ben Laurie <benl@FreeBSD.org> | 2011-06-18 13:56:33 +0000 |
commit | 5f301949ef1a0e2444e6a0b6700c8bcf400498fc (patch) | |
tree | 6edd0c06e1319e9f8e2572723af2f2d72fabda97 /lib/libprocstat/libprocstat.c | |
parent | f404863979cd0d00193099825904396d5f30cb34 (diff) | |
download | src-5f301949ef1a0e2444e6a0b6700c8bcf400498fc.tar.gz src-5f301949ef1a0e2444e6a0b6700c8bcf400498fc.zip |
Fix clang warnings.
Approved by: philip (mentor)
Notes
Notes:
svn path=/head/; revision=223262
Diffstat (limited to 'lib/libprocstat/libprocstat.c')
-rw-r--r-- | lib/libprocstat/libprocstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c index 384fe735e643..e1bdfcd83c9e 100644 --- a/lib/libprocstat/libprocstat.c +++ b/lib/libprocstat/libprocstat.c @@ -1283,7 +1283,7 @@ vntype2psfsttype(int type) static char * getmnton(kvm_t *kd, struct mount *m) { - static struct mount mnt; + struct mount mnt; static struct mtab { struct mtab *next; struct mount *m; @@ -1302,7 +1302,7 @@ getmnton(kvm_t *kd, struct mount *m) err(1, NULL); mt->m = m; bcopy(&mnt.mnt_stat.f_mntonname[0], &mt->mntonname[0], MNAMELEN); - mnt.mnt_stat.f_mntonname[MNAMELEN] = '\0'; + mt->mntonname[MNAMELEN] = '\0'; mt->next = mhead; mhead = mt; return (mt->mntonname); |