summaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-24 17:24:37 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-24 17:24:37 +0300
commit5caf2897f55f821386f4b9196a7ba73df209321d (patch)
tree421cab43f22b2ba363ccf6635ccaa512eb130001 /src/cfg_utils.c
parent9c775b45468e79bf9885dcb0950b0636e225b9ee (diff)
downloadrspamd-5caf2897f55f821386f4b9196a7ba73df209321d.tar.gz
rspamd-5caf2897f55f821386f4b9196a7ba73df209321d.zip
* Add <fsync> option to turn on explicit fsync for file backend.
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index f4c708b83..06faffbcd 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -420,19 +420,19 @@ parse_flag (const gchar *str)
if (!str || !*str)
return -1;
- if ((*str == 'Y' || *str == 'y') && *(str + 1) == '\0') {
+ if ((*str == 'Y' || *str == 'y')) {
return 1;
}
- if ((*str == 'Y' || *str == 'y') && (*(str + 1) == 'E' || *(str + 1) == 'e') && (*(str + 2) == 'S' || *(str + 2) == 's') && *(str + 3) == '\0') {
+ if ((*str == 'Y' || *str == 'y') && (*(str + 1) == 'E' || *(str + 1) == 'e') && (*(str + 2) == 'S' || *(str + 2) == 's')) {
return 1;
}
- if ((*str == 'N' || *str == 'n') && *(str + 1) == '\0') {
+ if ((*str == 'N' || *str == 'n')) {
return 0;
}
- if ((*str == 'N' || *str == 'n') && (*(str + 1) == 'O' || *(str + 1) == 'o') && *(str + 2) == '\0') {
+ if ((*str == 'N' || *str == 'n') && (*(str + 1) == 'O' || *(str + 1) == 'o')) {
return 0;
}