Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
freediameter
Commits
67a7d43f
Commit
67a7d43f
authored
Dec 06, 2010
by
Sebastien Decugis
Browse files
Fix wrong operator in testfifo
parent
cebda6c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
freeDiameter/tests/testfifo.c
View file @
67a7d43f
...
...
@@ -204,9 +204,12 @@ int main(int argc, char *argv[])
int
count
;
int
i
;
int
nbr_threads
;
#ifdef _POSIX_THREAD_THREADS_MAX
nbr_threads
=
_POSIX_THREAD_THREADS_MAX
;
#else
/* _POSIX_THREAD_THREADS_MAX */
nbr_threads
=
sysconf
(
_SC_THREAD_THREADS_MAX
);
if
((
nbr_threads
<=
0
)
||
(
nbr_threads
>
NBR_THREADS
/
2
))
{
#endif
/* _POSIX_THREAD_THREADS_MAX */
if
((
nbr_threads
<=
0
)
||
(
nbr_threads
>
NBR_THREADS
*
2
))
{
nbr_threads
=
NBR_THREADS
;
}
else
{
/* The local limit is bellow NBR_THREADS */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment