diff options
author | Greg McGary <greg@mcgary.org> | 2000-07-27 07:28:10 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 2000-07-27 07:28:10 +0000 |
commit | da8f38c5047cda3ecb9dcf2dc780572a44659778 (patch) | |
tree | fb1b643fb09e85bd7efbc15b5ac2ea81785dba39 /sysdeps/generic/bp-checks.h | |
parent | d25c879dc55dcc6a477fdce1c75382afec7596b8 (diff) | |
download | glibc-da8f38c5047cda3ecb9dcf2dc780572a44659778.tar.gz glibc-da8f38c5047cda3ecb9dcf2dc780572a44659778.tar.xz glibc-da8f38c5047cda3ecb9dcf2dc780572a44659778.zip |
* sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
* sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error in union init. Pass zero for ignored semnum arg to semctl. * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo. 2000-07-27 Greg McGary <greg@mcgary.org> * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*. * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error in union init. Pass zero for ignored semnum arg to semctl. * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
Diffstat (limited to 'sysdeps/generic/bp-checks.h')
-rw-r--r-- | sysdeps/generic/bp-checks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h index 0da4657ae2..f7defa417c 100644 --- a/sysdeps/generic/bp-checks.h +++ b/sysdeps/generic/bp-checks.h @@ -92,7 +92,7 @@ extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned); /* Return a bounded pointer with value PTR that satisfies CHECK_N (PTR, N). */ # define BOUNDED_N(PTR, N) \ - ({ __typeof (*(PTR)) *__bounded _p_; \ + ({ __typeof (PTR) __bounded _p_; \ __ptrvalue _p_ = __ptrlow _p_ = __ptrvalue (PTR); \ __ptrhigh _p_ = __ptrvalue _p_ + (N); \ _p_; }) |