Refactor conf_parse_bool()

* Increase size argument for strncmp() comparisons by one to include the
  terminating null-character (otherwise "yesfoo" would be parsed as
  "yes", "nobar" as "no").

* Pass destination address as an additional argument and return
  success/failure status to allow for better error handling.

* Temporarily remove error handling (will be fixed later).

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-07-19 14:41:02 +02:00
parent c875ab4195
commit 7e4f995692
2 changed files with 22 additions and 20 deletions

View File

@@ -462,7 +462,7 @@ struct pad {
/* Notification bar definition. */
struct nbar {
int show; /* display or hide the notify-bar */
unsigned show; /* display or hide the notify-bar */
int cntdwn; /* warn when time left before next app
becomes lesser than cntdwn */
char datefmt[BUFSIZ]; /* format for displaying date */