summaryrefslogtreecommitdiff
path: root/src/cr-attr-sel.c
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2014-08-05 08:17:17 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2014-08-05 11:57:59 +0000
commitd27114ca3442cffda04950b054d74f0f6cb19130 (patch)
treedd79c02f0df4a12c2c809d55248276f67474f78b /src/cr-attr-sel.c
parenta7df9d26a96bb48ccff06f4543c134e545b90c40 (diff)
downloadlibcroco-d27114ca3442cffda04950b054d74f0f6cb19130.tar.gz
gchar/guchar types and casting
https://bugzilla.gnome.org/show_bug.cgi?id=710076
Diffstat (limited to 'src/cr-attr-sel.c')
-rw-r--r--src/cr-attr-sel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cr-attr-sel.c b/src/cr-attr-sel.c
index 787f0c0..c057bbb 100644
--- a/src/cr-attr-sel.c
+++ b/src/cr-attr-sel.c
@@ -123,10 +123,10 @@ cr_attr_sel_to_string (CRAttrSel const * a_this)
if (cur->name) {
guchar *name = NULL;
- name = g_strndup (cur->name->stryng->str,
+ name = (guchar *) g_strndup (cur->name->stryng->str,
cur->name->stryng->len);
if (name) {
- g_string_append (str_buf, name);
+ g_string_append (str_buf, (const gchar *) name);
g_free (name);
name = NULL;
}
@@ -135,7 +135,7 @@ cr_attr_sel_to_string (CRAttrSel const * a_this)
if (cur->value) {
guchar *value = NULL;
- value = g_strndup (cur->value->stryng->str,
+ value = (guchar *) g_strndup (cur->value->stryng->str,
cur->value->stryng->len);
if (value) {
switch (cur->match_way) {
@@ -168,7 +168,7 @@ cr_attr_sel_to_string (CRAttrSel const * a_this)
}
if (str_buf) {
- result = str_buf->str;
+ result = (guchar *) str_buf->str;
g_string_free (str_buf, FALSE);
}