summaryrefslogtreecommitdiff
path: root/profiles/sap
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-10-05 10:16:57 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-05 11:26:57 +0300
commit4c34fcd00be61a1b9a659358eb5f6318f0fe2150 (patch)
tree88b9253c398c0ce227b10b1dd9ace7e50c30b115 /profiles/sap
parentd58929d732eb67500803b13e9e2edd46d91ba815 (diff)
downloadbluez-4c34fcd00be61a1b9a659358eb5f6318f0fe2150.tar.gz
adapter: Constify pointer returned by adapter_get_address
Diffstat (limited to 'profiles/sap')
-rw-r--r--profiles/sap/server.c2
-rw-r--r--profiles/sap/server.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/profiles/sap/server.c b/profiles/sap/server.c
index 607243285..9a7cb7269 100644
--- a/profiles/sap/server.c
+++ b/profiles/sap/server.c
@@ -1366,7 +1366,7 @@ static void destroy_sap_interface(void *data)
server_remove(server);
}
-int sap_server_register(const char *path, bdaddr_t *src)
+int sap_server_register(const char *path, const bdaddr_t *src)
{
sdp_record_t *record = NULL;
GError *gerr = NULL;
diff --git a/profiles/sap/server.h b/profiles/sap/server.h
index 9ea9a7846..e636d91ec 100644
--- a/profiles/sap/server.h
+++ b/profiles/sap/server.h
@@ -20,5 +20,5 @@
#include <gdbus.h>
-int sap_server_register(const char *path, bdaddr_t *src);
+int sap_server_register(const char *path, const bdaddr_t *src);
void sap_server_unregister(const char *path);