diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-01-26 20:03:58 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-01-26 20:03:58 +0000 |
commit | 1e124ec538abd89755a07370b3e298c5d4e275bc (patch) | |
tree | 11e55f54986e1fd2a80fd707f1d646272a4b9266 /sys/compat/linprocfs | |
parent | 0044f4e6eb992ee895bfd4d01fcd358a52ef2622 (diff) | |
download | FreeBSD-src-1e124ec538abd89755a07370b3e298c5d4e275bc.zip FreeBSD-src-1e124ec538abd89755a07370b3e298c5d4e275bc.tar.gz |
Add macro to test the sv_flags of any process. Change some places to test
the flags instead of explicit comparing with address of known sysentvec
structures.
MFC after: 1 month
Diffstat (limited to 'sys/compat/linprocfs')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 8626e66..2aae07d 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -928,7 +928,7 @@ do { \ #ifdef COMPAT_FREEBSD32 env_vector32 = NULL; - if ((p->p_sysent->sv_flags & SV_ILP32) != 0) { + if (SV_PROC_FLAG(p, SV_ILP32) != 0) { env_vector32 = malloc(sizeof(*env_vector32) * MAX_ARGV_STR, M_TEMP, M_WAITOK); elm_len = sizeof(int32_t); |