summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.y b/src/config.y
index e9ab3af..95ceaa2 100644
--- a/src/config.y
+++ b/src/config.y
@@ -560,8 +560,8 @@ boolean: TOK_YES { $$ = true; }
| TOK_NO { $$ = false; }
;
-autobool: TOK_AUTO { $$ = (fastd_tristate_t){ .set = false }; }
- | boolean { $$ = (fastd_tristate_t){ .set = true, .state = $1 }; }
+autobool: TOK_AUTO { $$ = fastd_tristate_undef; }
+ | boolean { $$ = $1 ? fastd_tristate_true : fastd_tristate_false; }
;
colon_or_port: ':'