diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-07-19 14:41:02 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-07-21 17:55:55 +0200 |
commit | 7e4f995692eb71fb8825cbbb2f45aad630b3cd80 (patch) | |
tree | 0c78d770498df40a59dad8d76ba0140ed998afcd /src/calcurse.h | |
parent | c875ab4195de6bdfe23b99256d9638cde3b4fd1f (diff) | |
download | calcurse-7e4f995692eb71fb8825cbbb2f45aad630b3cd80.tar.gz calcurse-7e4f995692eb71fb8825cbbb2f45aad630b3cd80.zip |
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>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index b94da61..7ba4a9b 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -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 */ |