build-sys: minor fixes found with cppcheck
This commit is contained in:
parent
25ad866460
commit
43a99a7afe
|
@ -5013,4 +5013,4 @@ tests += \
|
|||
test-libudev-sym
|
||||
|
||||
cppcheck:
|
||||
cppcheck --enable=all $(top_srcdir)
|
||||
cppcheck --enable=all -q $(top_srcdir)
|
||||
|
|
|
@ -563,7 +563,7 @@ static int help(void) {
|
|||
" -d --delay=DELAY Delay between updates\n"
|
||||
" -n --iterations=N Run for N iterations before exiting\n"
|
||||
" -b --batch Run in batch mode, accepting no input\n"
|
||||
" --depth=DEPTH Maximum traversal depth (default: %d)\n",
|
||||
" --depth=DEPTH Maximum traversal depth (default: %u)\n",
|
||||
program_invocation_short_name, arg_depth);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -484,6 +484,8 @@ int bus_cgroup_set_property(
|
|||
|
||||
n++;
|
||||
}
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (mode != UNIT_CHECK) {
|
||||
_cleanup_free_ char *buf = NULL;
|
||||
|
|
|
@ -1974,7 +1974,7 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
|
|||
fprintf(f, "%sCPUAffinity:", prefix);
|
||||
for (i = 0; i < c->cpuset_ncpus; i++)
|
||||
if (CPU_ISSET_S(i, CPU_ALLOC_SIZE(c->cpuset_ncpus), c->cpuset))
|
||||
fprintf(f, " %i", i);
|
||||
fprintf(f, " %u", i);
|
||||
fputs("\n", f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue