Navigation


Changeset 616:f2791162c1f2 in freeDiameter


Ignore:
Timestamp:
Dec 3, 2010, 2:31:08 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix warning about value outside enum range

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dict_legacy_xml/dict_lxml_xml.c

    r603 r616  
    631631We use the states mostly to validate the XML file. */
    632632enum state {
    633         START = 1, /* In "dictionary" */
     633        INIT = 0,
     634        START, /* In "dictionary" */
    634635         IN_VENDOR,
    635636         IN_APPLICATION,        /* note that "base" is equivalent to "application" for our state machine */
     
    715716       
    716717        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. */
    718719                        if (strcasecmp((char *)name, "dictionary"))
    719720                                goto xml_tree_error;
     
    10291030       
    10301031        switch (data->state) {
    1031                 case 0:
     1032                case INIT:
    10321033                        goto state_machine_error;
    10331034                       
Note: See TracChangeset for help on using the changeset viewer.