summaryrefslogtreecommitdiffstats
path: root/package/openobex/openobex-replace_deprecated_functions.patch
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2013-03-11 18:58:39 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-03-13 23:32:46 +0100
commit04092fa3570f0315042327148a0fe62854fc8722 (patch)
tree5528499b3a42209fd0b673dea0ae1eb4c23984d6 /package/openobex/openobex-replace_deprecated_functions.patch
parent402d1476f7159ab8055ec8b811b4fb5cd78b5609 (diff)
downloadbuildroot-novena-04092fa3570f0315042327148a0fe62854fc8722.tar.gz
buildroot-novena-04092fa3570f0315042327148a0fe62854fc8722.zip
openobex: new package
Cc: Julien Boibessot <julien.boibessot@armadeus.com> Cc: Eric Jarrige <eric.jarrige@armadeus.org> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/openobex/openobex-replace_deprecated_functions.patch')
-rw-r--r--package/openobex/openobex-replace_deprecated_functions.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/openobex/openobex-replace_deprecated_functions.patch b/package/openobex/openobex-replace_deprecated_functions.patch
new file mode 100644
index 000000000..17274d385
--- /dev/null
+++ b/package/openobex/openobex-replace_deprecated_functions.patch
@@ -0,0 +1,30 @@
+obex_test_cable.c: avoid to use SuSv3 LEGACY APIs
+
+Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+
+Index: openobex-1.5/apps/obex_test_cable.c
+===================================================================
+--- openobex-1.5.orig/apps/obex_test_cable.c 2009-02-08 19:30:22.000000000 +0100
++++ openobex-1.5/apps/obex_test_cable.c 2010-06-16 11:11:05.000000000 +0200
+@@ -113,9 +113,9 @@
+ if(total == sizeof(tmpbuf))
+ return -1;
+
+- if( (answer = index(tmpbuf, '\n')) ) {
++ if( (answer = strchr(tmpbuf, '\n')) ) {
+ // Remove first line (echo)
+- if( (answer_end = index(answer+1, '\n')) ) {
++ if( (answer_end = strchr(answer+1, '\n')) ) {
+ // Found end of answer
+ done = 1;
+ }
+@@ -178,7 +178,7 @@
+ }
+
+ tcgetattr(gt->ttyfd, &gt->oldtio);
+- bzero(&gt->newtio, sizeof(struct termios));
++ memset(&gt->newtio, 0, sizeof(struct termios));
+ gt->newtio.c_cflag = B115200 | CS8 | CREAD | CRTSCTS;
+ gt->newtio.c_iflag = IGNPAR;
+ gt->newtio.c_oflag = 0;