mirror of https://github.com/xzeldon/htop.git
Minor code style update
This commit is contained in:
parent
44091705db
commit
ef4cbae5ea
|
@ -221,15 +221,16 @@ static void updateViaExec(void) {
|
||||||
close(fdnull);
|
close(fdnull);
|
||||||
// Use of NULL in variadic functions must have a pointer cast.
|
// Use of NULL in variadic functions must have a pointer cast.
|
||||||
// The NULL constant is not required by standard to have a pointer type.
|
// The NULL constant is not required by standard to have a pointer type.
|
||||||
execlp("systemctl",
|
execlp(
|
||||||
"systemctl",
|
"systemctl",
|
||||||
"show",
|
"systemctl",
|
||||||
"--property=SystemState",
|
"show",
|
||||||
"--property=NFailedUnits",
|
"--property=SystemState",
|
||||||
"--property=NNames",
|
"--property=NFailedUnits",
|
||||||
"--property=NJobs",
|
"--property=NNames",
|
||||||
"--property=NInstalledJobs",
|
"--property=NJobs",
|
||||||
(char *)NULL);
|
"--property=NInstalledJobs",
|
||||||
|
(char *)NULL);
|
||||||
exit(127);
|
exit(127);
|
||||||
}
|
}
|
||||||
close(fdpair[1]);
|
close(fdpair[1]);
|
||||||
|
|
Loading…
Reference in New Issue