diff options
author | robert <robert@FreeBSD.org> | 2003-07-27 00:13:49 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2003-07-27 00:13:49 +0000 |
commit | 0794d132914a8e8798ec55bc807dca3868fcf098 (patch) | |
tree | 5709c37fcd9c8ec295e787566f941f3e678d7867 /lib/libpthread/thread/thr_sig.c | |
parent | 77fa6d308c2e718d0d386a85e125fdcb7bc07b76 (diff) | |
download | FreeBSD-src-0794d132914a8e8798ec55bc807dca3868fcf098.zip FreeBSD-src-0794d132914a8e8798ec55bc807dca3868fcf098.tar.gz |
Changed the type of the variable `qidx' from u_int8_t to int,
mainly to quiet a warning emitted by GCC 3.3 about comparing
a variable to a value which is larger than the former can hold.
The value was checked to make sure the `np->squeue' array is
not accessed behind its boundary.
This worked due to possibly accidental truncation when
(np->squeueput + 1) was larger than or equal to MAX_START (256)
when it was assigned to `qidx'.
`qidx' is used to hold the next position in the start queue
for an insertion. The new type was chosen because some other
code in the function ncr_freeze_devq() also uses plain integers
to hold those indices.
Wrapped the line after the closing parenthesis of an `if'
condition.
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
0 files changed, 0 insertions, 0 deletions