summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2010-11-19 05:57:22 -0800
committerDenis Kenzior <denkenz@gmail.com>2010-11-22 05:05:07 -0600
commit627ec8b0c3d8a77050eed212b5b335d2bea3bb51 (patch)
tree49294febbc44efc46184ead33caa5f7917dbc0e1 /src/util.c
parenta0f4dd266aab85e198b2be4735abf81e4b7bb718 (diff)
downloadofono-627ec8b0c3d8a77050eed212b5b335d2bea3bb51.tar.bz2
util: coding style fixes - rule M6
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 511683a0..4421c3d3 100644
--- a/src/util.c
+++ b/src/util.c
@@ -462,8 +462,8 @@ static const struct alphabet_conversion_table alphabet_lookup[] = {
static int compare_codepoints(const void *a, const void *b)
{
- const struct codepoint *ca = (const struct codepoint *)a;
- const struct codepoint *cb = (const struct codepoint *)b;
+ const struct codepoint *ca = (const struct codepoint *) a;
+ const struct codepoint *cb = (const struct codepoint *) b;
return (ca->from > cb->from) - (ca->from < cb->from);
}
@@ -1126,7 +1126,7 @@ char *sim_string_to_utf8(const unsigned char *buffer, int length)
if (buffer[i] == 0xff && buffer[i + 1] == 0xff)
break;
- return g_convert((char *)buffer + 1, i - 1,
+ return g_convert((char *) buffer + 1, i - 1,
"UTF-8//TRANSLIT", "UCS-2BE",
NULL, NULL, NULL);
case 0x81: