summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4fa49f2)
raw | patch | inline | side by side (parent: 4fa49f2)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 25 Sep 2009 07:27:50 +0000 (09:27 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 1 Dec 2009 10:35:42 +0000 (11:35 +0100) |
“NoCompression” → “Compression”.
src/openvpn.c | patch | blob | history |
diff --git a/src/openvpn.c b/src/openvpn.c
index e65a00a697de5f512d7828bb4ed30336eb91e8d7..cc7090bf45a3e4ebb27f941f127c7e15bf39215f 100644 (file)
--- a/src/openvpn.c
+++ b/src/openvpn.c
static const char *config_keys[] =
{
"StatusFile",
- "NoCompression"
+ "Compression"
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
DEBUG ("openvpn plugin: status file \"%s\" added", temp->file);
}
- else if (strcasecmp ("NoCompression", key) == 0)
+ else if (strcasecmp ("Compression", key) == 0)
{
- if ((strcasecmp ("True", value) == 0)
- || (strcasecmp ("Yes", value) == 0)
- || (strcasecmp ("On", value) == 0))
+ if (IS_TRUE (value))
+ store_compression = 1;
+ else
{
store_compression = 0;
DEBUG ("openvpn plugin: no 'compression statistcs' collected");
}
- else
- {
- store_compression = 1;
- }
}
else
{