]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Bool type may not be a char (1 bytes).
authorOliver Kurth <okurth@vmware.com>
Tue, 27 Aug 2019 19:55:36 +0000 (12:55 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 27 Aug 2019 19:55:36 +0000 (12:55 -0700)
Change structures exposed to the guest to not use Bool -
 - while currently Bool is defined as char, we might use C's
   _Bool or C++'s bool for booleans - and neither standard
   mandates _Bool/bool to be 1 byte.

open-vm-tools/modules/shared/vmxnet/vmxnet3_defs.h

index e1ecf9632e660f0f7e7306906cd98c61071a9556..3d39b9f19e91d7c2acc82a6c339430d9af1c9663 100644 (file)
@@ -678,7 +678,7 @@ Vmxnet3_CoalesceScheme;
 typedef
 #include "vmware_pack_begin.h"
 struct Vmxnet3_IntrConf {
-   Bool   autoMask;
+   uint8  autoMask;      /* on/off flag */
    uint8  numIntrs;      /* # of interrupts */
    uint8  eventIntrIdx;
    uint8  modLevels[VMXNET3_MAX_INTRS]; /* moderation level for each intr */
@@ -694,7 +694,7 @@ Vmxnet3_IntrConf;
 typedef
 #include "vmware_pack_begin.h"
 struct Vmxnet3_QueueStatus {
-   Bool    stopped;
+   uint8   stopped;    /* on/off flag */
    uint8   _pad[3];
    __le32  error;
 }
@@ -714,7 +714,7 @@ Vmxnet3_TxQueueCtrl;
 typedef
 #include "vmware_pack_begin.h"
 struct Vmxnet3_RxQueueCtrl {
-   Bool    updateRxProd;
+   uint8   updateRxProd;   /* on/off flag */
    uint8   _pad[7];
    __le64  reserved;
 }