From 9a9e4313a9fbfd90799bf2e518886816dbd067ee Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 14 Mar 2015 19:10:25 -0700 Subject: [PATCH] lib: Change field name from class_of_dev to dev_class --- lib/mgmt.h | 2 +- monitor/control.c | 6 +++--- tools/btmgmt.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/mgmt.h b/lib/mgmt.h index 4f81ccf2e..a72ebcac6 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 f2698fbef..38a1b316c 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 a4d5088f7..eda3b4588 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); } -- 2.47.3