summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2010-09-21 12:18:15 -0700
committerDenis Kenzior <denkenz@gmail.com>2010-09-21 21:16:01 -0500
commit41961827706e99a22ff40112a1f2abf0dec549f3 (patch)
tree58d38f255f42eec1a86f22ec90caf3ac58bcdcf7 /src/util.c
parent348a891665ff5f13de15f9bf0e11e6052f42b420 (diff)
downloadofono-41961827706e99a22ff40112a1f2abf0dec549f3.tar.bz2
Fix multi-line comment style issues
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/util.c b/src/util.c
index 269de7be..94b2fca4 100644
--- a/src/util.c
+++ b/src/util.c
@@ -917,17 +917,21 @@ unsigned char *unpack_7bit_own_buf(const unsigned char *in, long len,
/* Figure out the remainder */
rest = (in[i] >> bits) & ((1 << (8-bits)) - 1);
- /* We have the entire character, here we don't increate
+ /*
+ * We have the entire character, here we don't increate
* out if this is we started at an offset. Instead
- * we effectively populate variable rest */
+ * we effectively populate variable rest
+ */
if (i != 0 || bits == 7)
out++;
if ((out-buf) == max_to_unpack)
break;
- /* We expected only 1 bit from this octet, means there's 7
- * left, take care of them here */
+ /*
+ * We expected only 1 bit from this octet, means there's 7
+ * left, take care of them here
+ */
if (bits == 1) {
*out = rest;
out++;
@@ -938,7 +942,8 @@ unsigned char *unpack_7bit_own_buf(const unsigned char *in, long len,
}
}
- /* According to 23.038 6.1.2.3.1, last paragraph:
+ /*
+ * According to 23.038 6.1.2.3.1, last paragraph:
* "If the total number of characters to be sent equals (8n-1)
* where n=1,2,3 etc. then there are 7 spare bits at the end
* of the message. To avoid the situation where the receiving
@@ -1021,7 +1026,8 @@ unsigned char *pack_7bit_own_buf(const unsigned char *in, long len,
bits = bits - 1;
}
- /* If <CR> is intended to be the last character and the message
+ /*
+ * If <CR> is intended to be the last character and the message
* (including the wanted <CR>) ends on an octet boundary, then
* another <CR> must be added together with a padding bit 0. The
* receiving entity will perform the carriage return function twice,
@@ -1096,7 +1102,8 @@ char *sim_string_to_utf8(const unsigned char *buffer, int length)
return NULL;
if (buffer[0] < 0x80) {
- /* We have to find the real length, since on SIM file system
+ /*
+ * We have to find the real length, since on SIM file system
* alpha fields are 0xff padded
*/
for (i = 0; i < length; i++)