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
..
2014-03-25 14:58:40 +01:00
2014-10-29 09:55:09 -06:00
2014-07-16 06:48:53 -06:00
2014-03-18 14:29:22 +00:00
2014-11-07 09:16:37 +01:00
2014-03-10 14:26:04 +01:00
2014-10-29 09:55:09 -06:00
2014-10-29 09:55:09 -06:00
2014-11-14 17:13:35 +01:00
2014-03-25 14:58:40 +01:00
2014-11-14 17:13:35 +01:00
2014-11-04 07:03:36 +01:00
2014-11-14 17:13:35 +01:00
2014-08-23 14:29:24 -06:00
2014-11-19 08:20:39 -07:00
2014-10-01 20:17:46 +02:00
2014-04-07 06:14:45 -06:00
2014-11-14 17:13:35 +01:00
2014-09-03 05:58:15 -06:00
2014-03-19 10:47:58 +00:00
2014-11-14 17:13:35 +01:00
2014-02-12 17:52:46 +00:00
2014-03-12 16:01:30 -06:00
2014-03-10 16:39:18 +00:00
2014-11-19 08:20:39 -07:00
2014-05-06 11:22:13 -04:00
2014-03-21 11:26:34 +00:00
2014-11-14 17:13:35 +01:00
2014-04-25 15:44:09 +01:00
2014-03-11 11:01:52 +00:00
2014-09-24 15:29:22 +01:00
2014-05-21 09:33:24 -04:00
2014-10-29 09:55:09 -06:00
2014-11-14 17:13:35 +01:00
2014-03-10 14:26:04 +01:00
2014-11-14 17:13:35 +01:00
2014-07-29 11:25:16 +01:00
2014-11-14 17:13:35 +01:00
2014-04-28 14:27:40 +01:00
2014-04-25 15:44:09 +01:00
2014-04-07 06:14:45 -06:00
2014-04-07 06:14:45 -06:00
2014-09-22 17:11:56 +02:00
2014-09-22 17:11:56 +02:00
2014-07-24 07:04:44 -04:00
2014-03-19 10:05:31 +01:00
2014-09-24 15:29:22 +01:00
2014-09-24 15:29:22 +01:00
2014-10-22 13:09:49 +01:00
2014-05-05 14:30:01 -06:00
2014-11-14 15:15:16 +00:00
2014-04-25 15:44:09 +01:00
2014-11-14 17:13:35 +01:00
2014-03-25 08:26:39 +01:00
2014-10-15 10:27:50 +02:00
2014-10-15 10:27:50 +02:00
2013-12-24 17:36:47 +01:00
2013-12-24 17:36:47 +01:00
2014-04-07 06:14:45 -06:00
2014-03-25 14:58:40 +01:00
2014-02-04 08:52:27 -05:00
2014-11-14 17:13:35 +01:00
2014-11-14 17:13:35 +01:00
2014-03-18 14:29:22 +00:00
2014-10-28 14:14:25 -04:00
2014-10-28 14:14:25 -04:00
2014-11-14 17:13:35 +01:00
2014-10-28 14:14:25 -04:00
2014-11-06 15:30:13 +01:00
2014-01-29 19:01:19 +01:00
2014-11-14 17:13:35 +01:00
2014-11-19 10:36:49 +01:00
2014-11-19 10:36:49 +01:00
2014-07-14 12:49:30 +02:00
2013-10-14 13:05:34 -06:00
2014-11-14 17:13:35 +01:00
2014-09-16 16:02:34 +02:00
2014-04-08 13:46:29 +01:00
2013-10-14 13:05:34 -06:00
2013-10-14 13:05:34 -06:00
2014-10-26 12:23:23 -04:00
2014-05-05 14:30:01 -06:00
2014-10-29 09:55:09 -06:00
2013-10-14 13:05:34 -06:00
2014-04-14 18:19:36 +02:00
2014-11-07 12:04:57 +01:00
2014-11-06 15:13:55 +01:00
2014-04-07 06:14:45 -06:00
2014-04-07 06:14:45 -06:00
2014-11-19 08:20:39 -07:00
2014-07-28 14:10:29 -06:00
2014-11-04 12:06:38 +01:00
2014-11-03 16:43:23 +01:00
2014-11-19 08:20:39 -07:00
2014-09-24 15:29:22 +01:00
2014-09-11 15:40:14 -06:00
2014-09-11 15:40:14 -06:00
2014-03-18 14:29:22 +00:00
2014-10-29 09:55:09 -06:00
2014-03-03 12:40:31 -07:00
2014-04-08 13:46:29 +01:00
2014-06-23 14:16:23 +02:00
2014-03-04 12:24:13 +00:00
2014-07-14 05:44:20 -04:00
2014-07-11 10:36:02 +02:00
2014-11-14 17:13:35 +01:00
2014-10-22 12:54:38 +04:00
2014-10-15 09:25:33 +02:00
2014-09-17 11:28:48 -06:00
2014-09-17 11:28:48 -06:00
2014-11-14 17:13:35 +01:00
2014-06-20 09:14:46 +02:00
2014-11-14 17:13:35 +01:00
2014-09-12 09:37:37 +02:00
2014-10-22 17:51:18 +02:00
2014-10-22 17:51:18 +02:00
2014-11-14 17:13:35 +01:00
2014-05-05 14:30:01 -06:00
2014-07-03 10:48:14 +02:00
2014-04-11 15:51:10 -06:00
2014-03-25 14:58:40 +01:00
2014-10-29 09:55:09 -06:00
2014-11-14 17:13:35 +01:00
2014-10-28 14:44:18 -06:00
2014-07-25 12:06:07 +02:00
2014-03-25 14:58:40 +01:00
2014-09-04 15:18:43 -06:00
2014-10-15 09:25:33 +02:00
2014-07-03 10:41:15 +02:00
2014-03-04 12:24:13 +00:00
2014-11-19 08:20:39 -07:00
2014-10-28 21:25:32 -04:00
2014-03-20 17:16:18 +01:00
2014-01-02 22:17:11 -07:00
2014-11-14 17:13:35 +01:00
2014-03-10 14:26:04 +01:00