diff options
author | Samuel Martin <s.martin49@gmail.com> | 2017-11-03 11:30:34 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-11-03 21:59:58 +0100 |
commit | ec9486d3374070d56b6b9a0dfe99c26a28129923 (patch) | |
tree | df3eab195ff98a34284a96ccd0ea6d18e591ac37 /package/ussp-push/0003-add-OBEX_CharToUnicode.patch | |
parent | ddb1a631fa3e4944131395d33e4c7cf283b0bb7c (diff) | |
download | buildroot-ec9486d3374070d56b6b9a0dfe99c26a28129923.tar.gz buildroot-ec9486d3374070d56b6b9a0dfe99c26a28129923.zip |
package/ussp-push: add patches fixing the build
Fixes:
http://autobuild.buildroot.net/results/bdd932424a45399836f27c435d6f1f6fb8b97c29
http://autobuild.buildroot.net/results/287b7d35d64d72cbc587192cce1271bda9647608
http://autobuild.buildroot.net/results/82e1484d9a43df7387137a1bd679a4d74d460a79
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/ussp-push/0003-add-OBEX_CharToUnicode.patch')
-rw-r--r-- | package/ussp-push/0003-add-OBEX_CharToUnicode.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/package/ussp-push/0003-add-OBEX_CharToUnicode.patch b/package/ussp-push/0003-add-OBEX_CharToUnicode.patch new file mode 100644 index 0000000000..a660b5526b --- /dev/null +++ b/package/ussp-push/0003-add-OBEX_CharToUnicode.patch @@ -0,0 +1,47 @@ +From eafac77d76d2a23c191a56f715d6c4afc0800da8 Mon Sep 17 00:00:00 2001 +From: Samuel Martin <s.martin49@gmail.com> +Date: Fri, 3 Nov 2017 09:10:01 +0100 +Subject: [PATCH] add OBEX_CharToUnicode + +[fetch from debian source: http://http.debian.net/debian/pool/main/u/ussp-push/ussp-push_0.11-4.debian.tar.xz] + +Signed-off-by: Samuel Martin <s.martin49@gmail.com> +--- + src/obex_main.c | 20 ++++++++++++++++++++ + 1 file changed, 20 insertions(+) + +diff --git a/src/obex_main.c b/src/obex_main.c +index 6233d7e..971cc37 100644 +--- a/src/obex_main.c ++++ b/src/obex_main.c +@@ -84,7 +84,27 @@ void request_done(obex_t * handle, obex_object_t * object, int obex_cmd, int obe + + int bt_debug; + ++static int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size) ++{ ++ int len, n; ++ ++ if (uc == NULL || c == NULL) ++ return -1; ++ ++ len = n = strlen((char *) c); ++ if (n*2+2 > size) ++ return -1; ++ ++ uc[n*2+1] = 0; ++ uc[n*2] = 0; + ++ while (n--) { ++ uc[n*2+1] = c[n]; ++ uc[n*2] = 0; ++ } ++ ++ return (len * 2) + 2; ++} + + /* + * These two functions are from affix/profiles/obex/obex_io.c +-- +2.15.0 + |