From e935b6578369ae8a77e47c1c97845ccf33360078 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 4 Mar 2011 19:34:02 +0100 Subject: [PATCH] Simplify ba2oui function --- lib/bluetooth.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/bluetooth.c b/lib/bluetooth.c index 875119bb8..d064f9ed0 100644 --- a/lib/bluetooth.c +++ b/lib/bluetooth.c @@ -109,11 +109,7 @@ int str2ba(const char *str, bdaddr_t *ba) int ba2oui(const bdaddr_t *ba, char *str) { - uint8_t b[6]; - - baswap((bdaddr_t *) b, ba); - - return sprintf(str, "%2.2X-%2.2X-%2.2X", b[0], b[1], b[2]); + return sprintf(str, "%2.2X-%2.2X-%2.2X", ba->b[5], ba->b[4], ba->b[3]); } int bachk(const char *str) -- 2.47.3