From 7003e67273eda450adccee6851400c569f48fa10 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 29 Dec 2012 22:58:11 -0800 Subject: [PATCH] lib: Make bt_compidtostr return value const --- lib/bluetooth.c | 2 +- lib/bluetooth.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bluetooth.c b/lib/bluetooth.c index d7ec72e12..ba18ee6a7 100644 --- a/lib/bluetooth.c +++ b/lib/bluetooth.c @@ -258,7 +258,7 @@ int bt_error(uint16_t code) } } -char *bt_compidtostr(int compid) +const char *bt_compidtostr(int compid) { switch (compid) { case 0: diff --git a/lib/bluetooth.h b/lib/bluetooth.h index 161b7bd09..48323f06b 100644 --- a/lib/bluetooth.h +++ b/lib/bluetooth.h @@ -319,7 +319,7 @@ void *bt_malloc(size_t size); void bt_free(void *ptr); int bt_error(uint16_t code); -char *bt_compidtostr(int id); +const char *bt_compidtostr(int id); typedef struct { uint8_t data[16]; -- 2.47.3