projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb3a07d
)
ipvs plugin: Use sstrerror() instead of strerror().
author
Sebastian Harl
<sh@tokkee.org>
Wed, 10 Oct 2007 18:36:53 +0000
(20:36 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Fri, 12 Oct 2007 16:42:30 +0000
(18:42 +0200)
D'oh...
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/ipvs.c
patch
|
blob
|
history
diff --git
a/src/ipvs.c
b/src/ipvs.c
index
3c6aa5c
..
f2f40b4
100644
(file)
--- a/
src/ipvs.c
+++ b/
src/ipvs.c
@@
-73,6
+73,7
@@
static struct ip_vs_get_dests *ipvs_get_dests (struct ip_vs_service_entry *);
static const char *ipvs_strerror (int err)
{
+ char errbuf[1024];
unsigned int i;
struct {
@@
-93,7
+94,7
@@
static const char *ipvs_strerror (int err)
&& (table[i].err == err))
return table[i].message;
}
- return s
trerror (err
);
+ return s
strerror (err, errbuf, sizeof (errbuf)
);
} /* ipvs_strerror */
static struct ip_vs_get_services *ipvs_get_services (void)