Navigation


Changeset 1057:1c6c8fa622ff in freeDiameter


Ignore:
Timestamp:
Apr 29, 2013, 1:43:41 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
1058:5d37c0db6cbf, 1060:13fc3fc9c789
Phase:
public
Message:

Use yylval to make gcc happy

Location:
extensions/acl_wl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/acl_wl/aw_conf.l

    r974 r1057  
    9090                                /* We matched a valid label, let's directly save it into the tree. The function will issue the appropriate warnings. */
    9191                                CHECK_FCT_DO( aw_tree_add(yytext, curflag), return LEX_ERROR);
     92                                yylval->string = yytext;
    9293                                return FQDN;
    9394                        }
  • extensions/acl_wl/aw_conf.y

    r974 r1057  
    111111%}
    112112
     113/* Values returned by lex for token */
     114%union {
     115        char             *string;
     116}
     117
    113118/* In case of error in the lexical analysis */
    114119%token          LEX_ERROR
    115120
    116121/* Key words */
    117 %token          FQDN
     122%token <string> FQDN
    118123
    119124
     
    126131                        {
    127132                                fqdn_added++;
     133                                TRACE_DEBUG(FULL, "Added FQDN: %s", $2);
    128134                        }
    129135                        | conffile LEX_ERROR
Note: See TracChangeset for help on using the changeset viewer.