Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
boinc
Commits
1a9fc11f
Commit
1a9fc11f
authored
Oct 14, 2015
by
David Anderson
Browse files
client: tweak to remove Coverity warning
parent
5271c596
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/cs_platforms.cpp
View file @
1a9fc11f
...
...
@@ -115,9 +115,12 @@ void CLIENT_STATE::detect_platforms() {
cmdline
[
0
]
=
0
;
// find the 'uname' executable
do
{
//
while
(
1
)
{
if
(
boinc_file_exists
(
uname
[
eno
]))
break
;
}
while
(
uname
[
++
eno
]
!=
0
);
eno
++
;
if
(
uname
[
eno
]
==
0
)
break
;
}
// run it and check the kernel machine architecture.
if
(
uname
[
eno
]
!=
0
)
{
...
...
@@ -151,10 +154,13 @@ void CLIENT_STATE::detect_platforms() {
const
int
nlibdirs
=
sizeof
(
libdir
)
/
sizeof
(
char
*
);
// find 'file'
//
eno
=
0
;
do
{
while
(
1
)
{
if
(
boinc_file_exists
(
file
[
eno
]))
break
;
}
while
(
file
[
++
eno
]
!=
0
);
eno
++
;
if
(
file
[
eno
]
==
0
)
break
;
}
// now try to find a 32-bit C library.
if
(
file
[
eno
]
!=
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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