summaryrefslogtreecommitdiffstats
path: root/gisi
diff options
context:
space:
mode:
authorAntti Paila <antti.paila@nokia.com>2011-03-04 10:28:44 +0200
committerAki Niemi <aki.niemi@nokia.com>2011-03-04 13:31:54 +0200
commita55a136a0428c65beafa36870b576a5b87c117c1 (patch)
tree401cfdc10aec9dc20ff590b417f6cd62f5d46e8d /gisi
parent843d18ceaebda632e9be67b295ce6397a51faff5 (diff)
downloadofono-a55a136a0428c65beafa36870b576a5b87c117c1.tar.bz2
gisi: M6 coding style violation corrections
Diffstat (limited to 'gisi')
-rw-r--r--gisi/iter.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gisi/iter.c b/gisi/iter.c
index f3f6f5a5..8308c00d 100644
--- a/gisi/iter.c
+++ b/gisi/iter.c
@@ -56,7 +56,7 @@ void g_isi_sb_iter_init_full(GIsiSubBlockIter *iter, const GIsiMessage *msg,
len = used = 0;
iter->cursor = longhdr ? 4 : 2;
- iter->start = (uint8_t *)data + used;
+ iter->start = (uint8_t *) data + used;
iter->end = iter->start + len;
iter->longhdr = longhdr;
iter->sub_blocks = len > used ? sub_blocks : 0;
@@ -72,7 +72,7 @@ void g_isi_sb_iter_init(GIsiSubBlockIter *iter, const GIsiMessage *msg,
len = used = 0;
iter->cursor = 2;
- iter->start = (uint8_t *)data + used;
+ iter->start = (uint8_t *) data + used;
iter->end = iter->start + len;
iter->longhdr = FALSE;
iter->sub_blocks = len > used ? iter->start[-1] : 0;
@@ -147,18 +147,18 @@ size_t g_isi_sb_iter_get_len(const GIsiSubBlockIter *iter)
gboolean g_isi_sb_iter_get_data(const GIsiSubBlockIter *restrict iter,
void **data, unsigned pos)
{
- if ((size_t)pos > g_isi_sb_iter_get_len(iter)
+ if ((size_t) pos > g_isi_sb_iter_get_len(iter)
|| iter->start + pos > iter->end)
return FALSE;
- *data = (void *)iter->start + pos;
+ *data = (void *) iter->start + pos;
return TRUE;
}
gboolean g_isi_sb_iter_get_byte(const GIsiSubBlockIter *restrict iter,
uint8_t *byte, unsigned pos)
{
- if ((size_t)pos > g_isi_sb_iter_get_len(iter)
+ if ((size_t) pos > g_isi_sb_iter_get_len(iter)
|| iter->start + pos > iter->end)
return FALSE;
@@ -257,8 +257,8 @@ gboolean g_isi_sb_iter_get_alpha_tag(const GIsiSubBlockIter *restrict iter,
if (ucs2 + len > iter->end)
return FALSE;
- *utf8 = g_convert((const char *)ucs2, len, "UTF-8//TRANSLIT", "UCS-2BE",
- NULL, NULL, NULL);
+ *utf8 = g_convert((const char *) ucs2, len, "UTF-8//TRANSLIT",
+ "UCS-2BE", NULL, NULL, NULL);
return *utf8 != NULL;
}
@@ -290,7 +290,7 @@ gboolean g_isi_sb_iter_get_latin_tag(const GIsiSubBlockIter *restrict iter,
if (str + len > iter->end)
return FALSE;
- *latin = g_strndup((char *)str, len);
+ *latin = g_strndup((char *) str, len);
return *latin != NULL;
}