diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-30 03:19:38 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-30 03:36:22 +0100 |
commit | 8088a82a2a91d29967cef920ba780eecdf72518e (patch) | |
tree | d30768bff5805e1209d64e9c0e7e87c38cce0042 /src/config.y | |
parent | 1111dc8e5e9e78254c1a7a891d961713e1be9db0 (diff) | |
download | fastd-8088a82a2a91d29967cef920ba780eecdf72518e.tar fastd-8088a82a2a91d29967cef920ba780eecdf72518e.zip |
Perform string-based lookup of method-related information only once
Diffstat (limited to 'src/config.y')
-rw-r--r-- | src/config.y | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config.y b/src/config.y index a79e8e9..68d41a4 100644 --- a/src/config.y +++ b/src/config.y @@ -350,10 +350,7 @@ protocol: TOK_STRING { ; method: TOK_STRING { - if (!fastd_config_method(ctx, conf, $1->str)) { - fastd_config_error(&@$, ctx, conf, filename, depth, "unsupported method"); - YYERROR; - } + fastd_config_method(ctx, conf, $1->str); } ; |