summaryrefslogtreecommitdiff
path: root/bus/config-parser.c
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@intevation.de>2011-03-07 11:43:23 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-03-07 13:50:38 +0000
commite0fc90bdf2c60a4c77fffaf490d6f06b2bd6999d (patch)
tree3fe6f065398d1fcb55243e81ae96acbfc69d1669 /bus/config-parser.c
parentf1ba52066cadb90edb192ea93d55ba775bdb73d7 (diff)
downloaddbus-e0fc90bdf2c60a4c77fffaf490d6f06b2bd6999d.tar.gz
Do not use the name ELEMENT_TYPE
On Windows Systems ELEMENT_TYPE is already defined in Winioctl.h this header is included indirectly in dbus-sysdeps.h. By avoiding the use of the Name ELEMENT_TYPE it is ensured that config-parser-common.h can be included together with dbus-sysdeps.h Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus/config-parser.c')
-rw-r--r--bus/config-parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bus/config-parser.c b/bus/config-parser.c
index 9808d732..2543162f 100644
--- a/bus/config-parser.c
+++ b/bus/config-parser.c
@@ -690,12 +690,12 @@ start_busconfig_child (BusConfigParser *parser,
return TRUE;
}
- else if (element_type == ELEMENT_TYPE)
+ else if (element_type == ELEMENT_CONFIGTYPE)
{
if (!check_no_attributes (parser, "type", attribute_names, attribute_values, error))
return FALSE;
- if (push_element (parser, ELEMENT_TYPE) == NULL)
+ if (push_element (parser, ELEMENT_CONFIGTYPE) == NULL)
{
BUS_SET_OOM (error);
return FALSE;
@@ -2002,7 +2002,7 @@ bus_config_parser_end_element (BusConfigParser *parser,
case ELEMENT_INCLUDE:
case ELEMENT_USER:
- case ELEMENT_TYPE:
+ case ELEMENT_CONFIGTYPE:
case ELEMENT_LISTEN:
case ELEMENT_PIDFILE:
case ELEMENT_AUTH:
@@ -2472,7 +2472,7 @@ bus_config_parser_content (BusConfigParser *parser,
}
break;
- case ELEMENT_TYPE:
+ case ELEMENT_CONFIGTYPE:
{
char *s;