From 13e787230b7accedc53eeb729e505bf8144fbfb0 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 2 Dec 2014 18:28:28 +0100 Subject: [PATCH] lib: List all enum values in switch As described in coding style M10. --- lib/uuid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/uuid.c b/lib/uuid.c index 5c3f9866c..186a7e652 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -84,6 +84,7 @@ void bt_uuid_to_uuid128(const bt_uuid_t *src, bt_uuid_t *dst) case BT_UUID16: bt_uuid16_to_uuid128(src, dst); break; + case BT_UUID_UNSPEC: default: break; } @@ -171,6 +172,7 @@ int bt_uuid_to_string(const bt_uuid_t *uuid, char *str, size_t n) ntohl(data4), ntohs(data5)); } break; + case BT_UUID_UNSPEC: default: snprintf(str, n, "Type of UUID (%x) unknown.", uuid->type); return -EINVAL; /* Enum type of UUID not set */ -- 2.47.3