diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2011-03-04 19:34:02 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-15 15:08:51 +0200 |
commit | e935b6578369ae8a77e47c1c97845ccf33360078 (patch) | |
tree | fb6e201be713f28e7620a277f1d95b85a09ccdc2 /lib | |
parent | 020ef16431b0776075884ca9d007002311296146 (diff) | |
download | bluez-e935b6578369ae8a77e47c1c97845ccf33360078.tar.gz |
Simplify ba2oui function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bluetooth.c | 6 |
1 files changed, 1 insertions, 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) |