]> xenbits.xensource.com Git - libvirt.git/commit
src: Treat PID as signed
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Oct 2016 14:54:41 +0000 (16:54 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 13 Oct 2016 09:58:56 +0000 (17:58 +0800)
commitb7d2d4af2bd5813f227c0a0557ccd2a53b95f49a
treeb7a8edaafab65b5bc89e582a3ac379096e8e1309
parent83adcb5bdf8354bab8b1779a4655b963a36f050c
src: Treat PID as signed

This initially started as a fix of some debug printing in
virCgroupDetect. However it turned out that other places suffer
from the similar problem. While dealing with pids, esp. in cases
where we cannot use pid_t for ABI stability reasons, we often
chose an unsigned integer type. This makes no sense as pid_t is
signed.
Also, new syntax-check rule is introduced so we won't repeat this
mistake.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
13 files changed:
cfg.mk
src/locking/lock_driver_sanlock.c
src/lxc/lxc_controller.c
src/lxc/lxc_domain.c
src/lxc/lxc_driver.c
src/lxc/lxc_monitor.c
src/lxc/lxc_process.c
src/qemu/qemu_process.c
src/util/vircgroup.c
src/util/viridentity.c
src/util/virprocess.c
src/util/virsystemd.c
src/util/virutil.c