Skip to content
Browse files

Avoid bitfield magic in NoConfirm parsing

  • Loading branch information...
1 parent bc03c64 commit 3b25acb6a870fa337428ddebf0fb070b6575c328 @tadzik committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 conf.c
View
4 conf.c
@@ -102,10 +102,10 @@ void parse_powaur_config(FILE *fp)
}
} else if (!strcmp(key, "NoConfirm")) {
if (!strcmp(val, "Off") && config->noconfirm > 0) {
- --config->noconfirm;
+ config->noconfirm = 0;
pw_printf(PW_LOG_DEBUG, "%s%sParsed NoConfirm = Off\n", TAB, TAB);
} else if (!strcmp(val, "On")) {
- ++config->noconfirm;
+ config->noconfirm = 1;
pw_printf(PW_LOG_DEBUG, "%s%sParsed NoConfirm = On\n", TAB, TAB);
}
}

0 comments on commit 3b25acb

Please sign in to comment.
Something went wrong with that request. Please try again.