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
blender
monado-rpavlik
Commits
46fa9cbd
Commit
46fa9cbd
authored
Jun 21, 2019
by
Jakob Bornecrantz
Browse files
t/prober: Refactor closing down a bit
parent
0fa7af1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/targets/prober/main.c
View file @
46fa9cbd
...
...
@@ -103,12 +103,22 @@ main(int argc, const char **argv)
}
printf
(
"
\t
Found '%s'
\n
"
,
xdevs
[
i
]
->
name
);
}
// End of program
printf
(
" :: All ok, shutting down.
\n
"
);
for
(
size_t
i
=
0
;
i
<
NUM_XDEVS
;
i
++
)
{
if
(
xdevs
[
i
]
==
NULL
)
{
continue
;
}
printf
(
"
\t
Destroying '%s'
\n
"
,
xdevs
[
i
]
->
name
);
xdevs
[
i
]
->
destroy
(
xdevs
[
i
]);
xdevs
[
i
]
=
NULL
;
}
printf
(
" :: All ok, shutting down.
\n
"
);
// Finally done
return
do_exit
(
&
p
,
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