From: Iain Hibbert <plu...@netbsd.org> (For NetBSD at least, the BDADDR_ANY that is passed to these functions is defined as a const) --- include/openobex/obex.h | 4 ++-- lib/obex.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/openobex/obex.h b/include/openobex/obex.h index f948113..1e9e0d7 100644 --- a/include/openobex/obex.h +++ b/include/openobex/obex.h @@ -141,8 +141,8 @@ OPENOBEX_SYMBOL(int) IrOBEX_TransportConnect(obex_t *self, const char *service); # define bt_addr_t unsigned long # endif #endif -OPENOBEX_SYMBOL(int) BtOBEX_ServerRegister(obex_t *self, bt_addr_t *src, uint8_t channel); -OPENOBEX_SYMBOL(int) BtOBEX_TransportConnect(obex_t *self, bt_addr_t *src, bt_addr_t *dst, uint8_t channel); +OPENOBEX_SYMBOL(int) BtOBEX_ServerRegister(obex_t *self, const bt_addr_t *src, uint8_t channel); +OPENOBEX_SYMBOL(int) BtOBEX_TransportConnect(obex_t *self, const bt_addr_t *src, const bt_addr_t *dst, uint8_t channel); /* * OBEX File API diff --git a/lib/obex.c b/lib/obex.c index 5e5fb31..874cfcd 100644 --- a/lib/obex.c +++ b/lib/obex.c @@ -1058,7 +1058,7 @@ int CALLAPI IrOBEX_TransportConnect(obex_t *self, const char *service) An easier server function to use for Bluetooth (Bluetooth OBEX) only. */ LIB_SYMBOL -int CALLAPI BtOBEX_ServerRegister(obex_t *self, bt_addr_t *src, uint8_t channel) +int CALLAPI BtOBEX_ServerRegister(obex_t *self, const bt_addr_t *src, uint8_t channel) { DEBUG(3, "\n"); @@ -1085,8 +1085,8 @@ int CALLAPI BtOBEX_ServerRegister(obex_t *self, bt_addr_t *src, uint8_t channel) An easier connect function to use for Bluetooth (Bluetooth OBEX) only. */ LIB_SYMBOL -int CALLAPI BtOBEX_TransportConnect(obex_t *self, bt_addr_t *src, - bt_addr_t *dst, uint8_t channel) +int CALLAPI BtOBEX_TransportConnect(obex_t *self, const bt_addr_t *src, + const bt_addr_t *dst, uint8_t channel) { DEBUG(4, "\n"); -- 1.7.5.4 ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users