diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2011-11-15 15:27:54 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:48:48 +0100 |
commit | dcab04f113f7be0f518c5958df53560e166eb1d2 (patch) | |
tree | cfb235c3d0833724112f7d0d7d5a912597780566 /obexd/plugins/ftp.c | |
parent | 8c9942c4a388422538e74aa8c8d320c4f71ade46 (diff) |
obexd: Introduce obex_get_non_header_data
This function remove the need of calling OBEX_ObjectGetNonHdrData in the
plugins.
Diffstat (limited to 'obexd/plugins/ftp.c')
-rw-r--r-- | obexd/plugins/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c index 0586326d6..7a736aeba 100644 --- a/obexd/plugins/ftp.c +++ b/obexd/plugins/ftp.c @@ -255,13 +255,13 @@ int ftp_setpath(struct obex_session *os, obex_object_t *obj, void *user_data) { struct ftp_session *ftp = user_data; const char *root_folder, *name; - uint8_t *nonhdr; + const uint8_t *nonhdr; char *fullname; struct stat dstat; gboolean root; int err; - if (OBEX_ObjectGetNonHdrData(obj, &nonhdr) != 2) { + if (obex_get_non_header_data(os, &nonhdr) != 2) { error("Set path failed: flag and constants not found!"); return -EBADMSG; } |