summaryrefslogtreecommitdiff
path: root/saedit/xml.c
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2012-01-30 21:29:46 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2012-01-30 21:29:46 +0400
commite0e931518b1e5072749e2f2db768a9f0ed899d30 (patch)
treeee3ea4b49cf75c8ed533a8fa0357add8c971031c /saedit/xml.c
parentdfee2a915a49e479345add234e453a423881d12e (diff)
downloadevol-tools-e0e931518b1e5072749e2f2db768a9f0ed899d30.tar.gz
evol-tools-e0e931518b1e5072749e2f2db768a9f0ed899d30.tar.bz2
evol-tools-e0e931518b1e5072749e2f2db768a9f0ed899d30.tar.xz
evol-tools-e0e931518b1e5072749e2f2db768a9f0ed899d30.zip
Correcting code to remove all compiler warnings.
Diffstat (limited to 'saedit/xml.c')
-rw-r--r--saedit/xml.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/saedit/xml.c b/saedit/xml.c
index 2968082..715a208 100644
--- a/saedit/xml.c
+++ b/saedit/xml.c
@@ -11,14 +11,14 @@
#include "xml.h"
-gchar **xml_attr_new(gchar *name, gchar *value) {
+gchar **xml_attr_new(const gchar *name, const gchar *value) {
gchar **attr = g_new0(gchar*, 2);
- attr[0] = name;
- attr[1] = value;
+ attr[0] = g_strdup(name);
+ attr[1] = g_strdup(value);
return attr;
}
-gchar* xml_node_get_attr_value(XMLNode *node, gchar *attr_name) {
+gchar* xml_node_get_attr_value(const XMLNode *node, const gchar *attr_name) {
gchar **attr = node->attributes;
int i;
for (i = 0; i < g_strv_length(attr); i += 2)