summaryrefslogtreecommitdiff
path: root/packages/gsm
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2007-09-29 03:24:15 +0000
committerMike Westerhof <mwester@dls.net>2007-09-29 03:24:15 +0000
commit56a0b8217e225655eb0031b10214120c783c8df5 (patch)
tree48470a1c958b4ef4d3e25f02dd6849b4907a8665 /packages/gsm
parent7a04000a0c5e59cf4f77565210200b5de550ea2e (diff)
libgsmd: Fix return value from lgsm_send(), this fixes the dialer failure on boot.
Diffstat (limited to 'packages/gsm')
-rw-r--r--packages/gsm/files/lgsm_send_fix_return_value.patch11
-rw-r--r--packages/gsm/libgsmd_svn.bb3
2 files changed, 13 insertions, 1 deletions
diff --git a/packages/gsm/files/lgsm_send_fix_return_value.patch b/packages/gsm/files/lgsm_send_fix_return_value.patch
new file mode 100644
index 0000000000..00ba3a4549
--- /dev/null
+++ b/packages/gsm/files/lgsm_send_fix_return_value.patch
@@ -0,0 +1,11 @@
+--- gsm/src/libgsmd/libgsmd.c.orig 2007-09-25 00:41:56.000000000 -0500
++++ gsm/src/libgsmd/libgsmd.c 2007-09-25 00:43:44.000000000 -0500
+@@ -210,7 +210,7 @@
+ pos += rc;
+ }
+ }
+- return 0;
++ return (sizeof(*gmh) + gmh->len);
+ }
+
+ struct gsmd_msg_hdr *lgsm_gmh_fill(int type, int subtype, int payload_len)
diff --git a/packages/gsm/libgsmd_svn.bb b/packages/gsm/libgsmd_svn.bb
index 948b979c2c..9aaad58ee6 100644
--- a/packages/gsm/libgsmd_svn.bb
+++ b/packages/gsm/libgsmd_svn.bb
@@ -4,7 +4,7 @@ LICENSE = "GPL LGPL"
SECTION = "libs/gsm"
PROVIDES += "gsmd"
PV = "0.1+svnr${SRCREV}"
-PR = "r30"
+PR = "r31"
SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \
file://024_sms-text-in-bracket.patch;patch=1;minrev=2957 \
@@ -16,6 +16,7 @@ SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \
file://0003-Correctly-segment-incoming-usock-data-into-packets.patch;patch=1;minrev=2957 \
file://0004-Handle-read-and-write-return-values.patch;patch=1;minrev=2957 \
file://0005-Add-ask-ds-option-forSMS.patch;patch=1;minrev=2957 \
+ file://lgsm_send_fix_return_value.patch;patch=1 \
file://gsmd \
file://default"
S = "${WORKDIR}/gsm"