diff --git a/obexd/gwobex/gw-obex.c b/obexd/gwobex/gw-obex.c
index e656692..4481212 100644
--- a/obexd/gwobex/gw-obex.c
+++ b/obexd/gwobex/gw-obex.c
ctx->mutex = g_mutex_new();
#endif
- OBEX_SetCustomData(handle, ctx);
+ OBEX_SetUserData(handle, ctx);
debug("Connecting to OBEX service\n");
if (!gw_obex_connect(ctx, uuid, uuid_len)) {
diff --git a/obexd/gwobex/obex-priv.c b/obexd/gwobex/obex-priv.c
index 76a9599..aba7dd7 100644
--- a/obexd/gwobex/obex-priv.c
+++ b/obexd/gwobex/obex-priv.c
static void obex_event_handler(obex_t *handle, obex_object_t *object, int mode,
int event, int obex_cmd, int obex_rsp) {
- GwObex *ctx = OBEX_GetCustomData(handle);
+ GwObex *ctx = OBEX_GetUserData(handle);
switch (event) {
case OBEX_EV_ABORT:
debug("OBEX_EV_ABORT\n");