libvirt/src/conf
Eric Blake eb9093763f maint: forbid 'int foo = true'
I noticed this while working on qemuDomainGetBlockInfo.  Assigning
a bool value to an int variable compiles fine, but raises red flags
on the maintenance front as it becomes too easy to assign -1 or 2
or any other non-bool value to the same variable.

* cfg.mk (sc_prohibit_int_assign_bool): New rule.
* src/conf/snapshot_conf.c (virDomainSnapshotRedefinePrep): Fix
offenders.
* src/qemu/qemu_driver.c (qemuDomainGetBlockInfo)
(qemuDomainSnapshotCreateXML): Likewise.
* src/test/test_driver.c (testDomainSnapshotAlignDisks):
Likewise.
* src/util/vircgroup.c (virCgroupSupportsCpuBW): Likewise.
* src/util/virpci.c (virPCIDeviceBindToStub): Likewise.
* src/util/virutil.c (virIsCapableVport): Likewise.
* tools/virsh-domain-monitor.c (cmdDomMemStat): Likewise.
* tools/virsh-domain.c (cmdBlockResize, cmdScreenshot)
(cmdInjectNMI, cmdSendKey, cmdSendProcessSignal)
(cmdDetachInterface): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
2014-11-19 08:20:39 -07:00
..
capabilities.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
capabilities.h capabilities: use bool instead of int 2014-07-14 08:00:46 -06:00
cpu_conf.c cpu_conf: Allow specification of 'units' for @memory on numa nodes. 2014-11-10 14:55:45 +01:00
cpu_conf.h Memory: Use consistent type for all memory elements. 2014-11-05 14:21:15 +01:00
device_conf.c Introduce virTristateSwitch enum 2014-07-23 12:59:40 +02:00
device_conf.h Introduce virTristateSwitch enum 2014-07-23 12:59:40 +02:00
domain_addr.c Properly check the return value of CCWAddressAsString 2014-06-23 08:31:53 +02:00
domain_addr.h Split out CCW address allocation 2014-06-21 10:12:21 +02:00
domain_audit.c audit: Fix some comments 2014-08-07 10:28:32 +02:00
domain_audit.h audit: Add auditing for serial/parallel/channel/console character devs 2014-07-07 12:56:45 +02:00
domain_capabilities.c domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domain_capabilities.h domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domain_conf.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
domain_conf.h qemu: Modify the structure _virDomainBlockIoTuneInfo. 2014-11-10 15:48:59 +01:00
domain_event.c Check for NULL in qemu monitor event filter 2014-09-26 13:35:51 +02:00
domain_event.h event: introduce new event for tunable values 2014-09-23 21:49:57 +02:00
domain_nwfilter.c
domain_nwfilter.h
interface_conf.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
interface_conf.h maint: Prohibit "devname" by a syntax check rules 2014-10-01 16:39:01 +02:00
netdev_bandwidth_conf.c network: Add network bandwidth support to ethernet interfaces 2014-11-19 10:36:49 +01:00
netdev_bandwidth_conf.h network: Add network bandwidth support to ethernet interfaces 2014-11-19 10:36:49 +01:00
netdev_vlan_conf.c
netdev_vlan_conf.h
netdev_vport_profile_conf.c
netdev_vport_profile_conf.h
network_conf.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
network_conf.h conf: add trustGuestRxFilters attribute to network and domain interface 2014-10-06 11:49:10 -04:00
network_event.c
network_event.h
node_device_conf.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
node_device_conf.h nodedev: move pci express types to virpci.h 2014-07-28 14:10:25 -06:00
numatune_conf.c numa: split util/ and conf/ and support non-contiguous nodesets 2014-11-06 15:13:55 +01:00
numatune_conf.h numa: split util/ and conf/ and support non-contiguous nodesets 2014-11-06 15:13:55 +01:00
nwfilter_conf.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
nwfilter_conf.h conf: use typedefs for enums in "src/conf/nwfilter_conf.h" 2014-05-14 09:49:57 -06:00
nwfilter_ipaddrmap.c Remove pointless storage of var names in virNWFilterHashTable 2014-04-25 15:44:09 +01:00
nwfilter_ipaddrmap.h
nwfilter_params.c cleanup spaces between parentheses and braces 2014-08-20 14:50:21 +02:00
nwfilter_params.h conf: use typedefs for enums in node_device_conf, nwfilter_params 2014-05-12 16:49:43 -06:00
object_event_private.h
object_event.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
object_event.h
secret_conf.c maint: use consistent if-else braces in conf and friends 2014-09-04 08:53:21 -06:00
secret_conf.h maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
snapshot_conf.c maint: forbid 'int foo = true' 2014-11-19 08:20:39 -07:00
snapshot_conf.h conf: store snapshot source as pointer, for easier manipulation 2014-06-06 09:56:27 -06:00
storage_conf.c Remove unnecessary curly brackets in src/conf/ 2014-11-14 17:13:01 +01:00
storage_conf.h storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
virchrdev.c
virchrdev.h