Diff between 035ca74704dc4492bea7e60625caa26bc87b27ce and 9a9e4313a9fbfd90799bf2e518886816dbd067ee

Changed Files

File Additions Deletions Status
lib/mgmt.h +1 -1 modified
monitor/control.c +3 -3 modified
tools/btmgmt.c +1 -1 modified

Full Patch

diff --git a/lib/mgmt.h b/lib/mgmt.h
index 4f81ccf..a72ebca 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -495,7 +495,7 @@ struct mgmt_ev_controller_error {
 
 #define MGMT_EV_CLASS_OF_DEV_CHANGED	0x0007
 struct mgmt_ev_class_of_dev_changed {
-	uint8_t class_of_dev[3];
+	uint8_t dev_class[3];
 } __packed;
 
 #define MGMT_EV_LOCAL_NAME_CHANGED	0x0008
diff --git a/monitor/control.c b/monitor/control.c
index f2698fb..38a1b31 100644
--- a/monitor/control.c
+++ b/monitor/control.c
@@ -231,9 +231,9 @@ static void mgmt_class_of_dev_changed(uint16_t len, const void *buf)
 	}
 
 	printf("@ Class of Device Changed: 0x%2.2x%2.2x%2.2x\n",
-						ev->class_of_dev[2],
-						ev->class_of_dev[1],
-						ev->class_of_dev[0]);
+						ev->dev_class[2],
+						ev->dev_class[1],
+						ev->dev_class[0]);
 
 	buf += sizeof(*ev);
 	len -= sizeof(*ev);
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index a4d5088..eda3b45 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -1686,7 +1686,7 @@ static void class_rsp(uint16_t op, uint16_t id, uint8_t status, uint16_t len,
 	}
 
 	print("%s succeeded. Class 0x%02x%02x%02x", mgmt_opstr(op),
-		rp->class_of_dev[2], rp->class_of_dev[1], rp->class_of_dev[0]);
+		rp->dev_class[2], rp->dev_class[1], rp->dev_class[0]);
 
 	noninteractive_quit(EXIT_SUCCESS);
 }