Changeset 616:f2791162c1f2 in freeDiameter for extensions
- Timestamp:
- Dec 3, 2010, 2:31:08 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dict_legacy_xml/dict_lxml_xml.c
r603 r616 631 631 We use the states mostly to validate the XML file. */ 632 632 enum state { 633 START = 1, /* In "dictionary" */ 633 INIT = 0, 634 START, /* In "dictionary" */ 634 635 IN_VENDOR, 635 636 IN_APPLICATION, /* note that "base" is equivalent to "application" for our state machine */ … … 715 716 716 717 switch (data->state) { 717 case 0: /* we are just starting. We only expect a <dictionary> tag, reject anything else. */718 case INIT: /* we are just starting. We only expect a <dictionary> tag, reject anything else. */ 718 719 if (strcasecmp((char *)name, "dictionary")) 719 720 goto xml_tree_error; … … 1029 1030 1030 1031 switch (data->state) { 1031 case 0:1032 case INIT: 1032 1033 goto state_machine_error; 1033 1034
Note: See TracChangeset
for help on using the changeset viewer.