* [PATCHv2] Fix 8bit port handling
@ 2010-09-27 15:45 Aki Niemi
2010-09-27 23:58 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Aki Niemi @ 2010-09-27 15:45 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
---
src/sms.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sms.c b/src/sms.c
index 303d673..99b0812 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -1333,8 +1333,8 @@ static void sms_dispatch(struct ofono_sms *sms, GSList *sms_list)
}
if (sms_extract_app_port(s, &cdst, &csrc, &is_8bit)) {
- csrc = is_8bit ? csrc : (csrc << 8);
- cdst = is_8bit ? cdst : (cdst << 8);
+ csrc = is_8bit ? (csrc << 8) : csrc;
+ cdst = is_8bit ? (cdst << 8) : cdst;
if (l == sms_list) {
srcport = csrc;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-27 23:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 15:45 [PATCHv2] Fix 8bit port handling Aki Niemi
2010-09-27 23:58 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.