projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77788d8
)
smsutils: add some documentation
author
Inaky Perez-Gonzalez
<inaky.perez-gonzalez@intel.com>
Wed, 26 May 2010 19:49:18 +0000
(12:49 -0700)
committer
Denis Kenzior
<denkenz@gmail.com>
Fri, 28 May 2010 14:23:35 +0000
(09:23 -0500)
sms_assembly_add_fragment_backup: clarify how insertion spot is found
src/smsutil.c
patch
|
blob
|
history
diff --git
a/src/smsutil.c
b/src/smsutil.c
index
bc9fdad
..
62d8ab2
100644
(file)
--- a/
src/smsutil.c
+++ b/
src/smsutil.c
@@
-2521,6
+2521,13
@@
static GSList *sms_assembly_add_fragment_backup(struct sms_assembly *assembly,
if (node->bitmap[offset] & bit)
return NULL;
+ /*
+ * Iterate over the bitmap to find in which position
+ * should the fragment be inserted -- basically we
+ * walk each bit in the bitmap until the bit we care
+ * about (offset:bit) and count which are stored --
+ * that gives us in which position we have to insert.
+ */
position = 0;
for (i = 0; i < offset; i++)
for (j = 0; j < 32; j++)