Re: [BlueZ PATCH 3/3] android: Enable multiadvertising

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/10/17 09:33, Szymon Janc wrote:

Hi Szymon,

thanks for the review.


+	switch(adv->type) {
+	case ANDROID_ADVERTISING_EVENT_TYPE_CONNECTABLE:
+		cp->flags |= MGMT_ADV_FLAG_CONNECTABLE;
+		break;
+
+	defualt:
+		break;
This will not compile :)

Actually it *does* compile, in spite of the typo in "defualt" (the compiler interprets it as a label)

Good catch though!

I then saw the rule in coding-style.txt about using all values of enums in switch statements (though it isn't enforced for Android builds)

So I'll do that for V2

All of your other remarks applied

Thanks,

Martin


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux