projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
845cac1
)
openvpn plugin: Remove trailing whitespace.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 25 Sep 2009 07:28:11 +0000
(09:28 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 1 Dec 2009 10:35:42 +0000
(11:35 +0100)
src/openvpn.c
patch
|
blob
|
history
diff --git
a/src/openvpn.c
b/src/openvpn.c
index
cc7090b
..
18f0387
100644
(file)
--- a/
src/openvpn.c
+++ b/
src/openvpn.c
@@
-455,7
+455,7
@@
static int openvpn_config (const char *key, const char *value)
fclose (fh);
if (status_version == 0)
fclose (fh);
if (status_version == 0)
- {
+ {
WARNING ("openvpn plugin: unable to detect status version, \
discarding status file \"%s\".", value);
return (1);
WARNING ("openvpn plugin: unable to detect status version, \
discarding status file \"%s\".", value);
return (1);
@@
-469,7
+469,7
@@
static int openvpn_config (const char *key, const char *value)
sstrerror (errno, errbuf, sizeof (errbuf)));
return (1);
}
sstrerror (errno, errbuf, sizeof (errbuf)));
return (1);
}
-
+
/* it determines the file name as string starting at location filename + 1 */
filename = strrchr (status_file, (int) '/');
if (filename == NULL)
/* it determines the file name as string starting at location filename + 1 */
filename = strrchr (status_file, (int) '/');
if (filename == NULL)
@@
-499,7
+499,7
@@
static int openvpn_config (const char *key, const char *value)
}
}
}
}
- /* create a new vpn element since file, version and name are ok */
+ /* create a new vpn element since file, version and name are ok */
temp = (vpn_status_t *) malloc (sizeof (vpn_status_t));
temp->file = status_file;
temp->version = status_version;
temp = (vpn_status_t *) malloc (sizeof (vpn_status_t));
temp->file = status_file;
temp->version = status_version;
@@
-545,7
+545,7
@@
static int openvpn_config (const char *key, const char *value)
static int openvpn_shutdown (void)
{
int i;
static int openvpn_shutdown (void)
{
int i;
-
+
for (i = 0; i < vpn_num; i++)
{
sfree (vpn_list[i]->file);
for (i = 0; i < vpn_num; i++)
{
sfree (vpn_list[i]->file);