sms: Left shift 8-bit ports by 16

These are less commonly used so make them not interfere with 16 bit
ports
This commit is contained in:
Denis Kenzior 2010-11-01 10:19:10 -05:00
parent f9066be4f0
commit f5db7564e8
1 changed files with 2 additions and 2 deletions

View File

@ -1317,8 +1317,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 << 8) : csrc;
cdst = is_8bit ? (cdst << 8) : cdst;
csrc = is_8bit ? (csrc << 16) : csrc;
cdst = is_8bit ? (cdst << 16) : cdst;
if (l == sms_list) {
srcport = csrc;