diff options
author | jhb <jhb@FreeBSD.org> | 2002-02-27 19:18:10 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-02-27 19:18:10 +0000 |
commit | b8b3ac8816b79f4b10e71029cabb891ae0c33e03 (patch) | |
tree | 42d652ae46be9db4862eef10266827ddea3cb240 /sys/ufs | |
parent | 56094fdb72b398e3c7bcf13e638de2b00e5b0197 (diff) | |
download | FreeBSD-src-b8b3ac8816b79f4b10e71029cabb891ae0c33e03.zip FreeBSD-src-b8b3ac8816b79f4b10e71029cabb891ae0c33e03.tar.gz |
Use thread0.td_ucred instead of proc0.p_ucred. This change is cosmetic
and isn't strictly required. However, it lowers the number of false
positives found when grep'ing the kernel sources for p_ucred to ensure
proper locking.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index f740c9f..fd47219 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -57,7 +57,7 @@ #include <ufs/ffs/fs.h> #include <ufs/ffs/ffs_extern.h> -#define KERNCRED proc0.p_ucred +#define KERNCRED thread0.td_ucred #define DEBUG 1 static int cgaccount __P((int, struct vnode *, struct buf *, int)); |