summaryrefslogtreecommitdiff
path: root/osinfo/osinfo_loader.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-12-06 18:36:06 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-12-10 16:34:51 +0100
commitaf1a301cb342a0da75ace56a2d2abbe5977bb39e (patch)
treefb7d0acee6c55b72baa8574bf0f31aea0f5bf373 /osinfo/osinfo_loader.c
parent8bfdbb1dc3891e4eb4d715be44c5b8cd70f72a86 (diff)
downloadlibosinfo-af1a301cb342a0da75ace56a2d2abbe5977bb39e.tar.gz
loader: Use symbolic names in osinfo_loader_install_config_params
osinfo_loader_install_config_params.h defines OSINFO_INSTALL_CONFIG_PARAMS_* constants, better to use these rather than string literals.
Diffstat (limited to 'osinfo/osinfo_loader.c')
-rw-r--r--osinfo/osinfo_loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c
index a4c8ea8..18325f6 100644
--- a/osinfo/osinfo_loader.c
+++ b/osinfo/osinfo_loader.c
@@ -588,8 +588,8 @@ static void osinfo_loader_install_config_params(OsinfoLoader *loader,
return;
for (i = 0 ; i < nnodes ; i++) {
- gchar *name = (gchar *)xmlGetProp(nodes[i], BAD_CAST "name");
- gchar *policy = (gchar *)xmlGetProp(nodes[i], BAD_CAST "policy");
+ gchar *name = (gchar *)xmlGetProp(nodes[i], BAD_CAST OSINFO_INSTALL_CONFIG_PARAM_PROP_NAME);
+ gchar *policy = (gchar *)xmlGetProp(nodes[i], BAD_CAST OSINFO_INSTALL_CONFIG_PARAM_PROP_POLICY);
OsinfoInstallConfigParam *param = osinfo_install_config_param_new(name);
osinfo_entity_set_param(OSINFO_ENTITY(param),
OSINFO_INSTALL_CONFIG_PARAM_PROP_POLICY,