blob: c18627b2fa5fef6c3097335ca4e418a50b29c1ed [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001Submitted By: Armin K. <krejzi at email dot com>
2Date: 2012-07-06
3Initial Package Version: 0.4.6
Brad Bishop6e60e8b2018-02-01 10:27:11 -05004Origin: Self
5Description: Some build fixes.
6
Patrick Williamsb9af8752023-01-30 13:28:01 -06007Upstream-Status: Pending
8
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009Index: obex-data-server-0.4.6/src/ods-obex.c
10===================================================================
11--- obex-data-server-0.4.6.orig/src/ods-obex.c
12+++ obex-data-server-0.4.6/src/ods-obex.c
13@@ -412,7 +412,7 @@ ods_obex_setup_usbtransport (OdsObexCont
14 goto err;
15 }
16
17- interfaces_num = OBEX_FindInterfaces(obex_context->obex_handle, &obex_intf);
18+ interfaces_num = OBEX_EnumerateInterfaces(obex_context->obex_handle);
19 if (intf_num >= interfaces_num) {
20 g_set_error (error, ODS_ERROR, ODS_ERROR_FAILED, "Invalid interface number");
21 goto err;