From a9cf4d774be91a4078ad2616bff68ce2b22c1e53 Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Thu, 5 Jan 2012 22:11:13 +0000 Subject: [PATCH] use scope for case local variables --- src/hci_dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hci_dump.c b/src/hci_dump.c index 80720ff37..f20557eb1 100644 --- a/src/hci_dump.c +++ b/src/hci_dump.c @@ -134,7 +134,7 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t gettimeofday(&curr_time, NULL); switch (dump_format){ - case HCI_DUMP_STDOUT: + case HCI_DUMP_STDOUT: { /* Obtain the time of day, and convert it to a tm struct. */ ptm = localtime (&curr_time.tv_sec); /* Format the date and time, down to a single second. */ @@ -161,6 +161,7 @@ void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t } hexdump(packet, len); break; + } case HCI_DUMP_BLUEZ: bt_store_16( (uint8_t *) &header_bluez.len, 0, 1 + len); header_bluez.in = in;