projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
215a29e
)
openldap: prefer using ldap_err2string() over sstrerror()
author
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 20 Aug 2014 10:27:21 +0000
(12:27 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Fri, 29 Aug 2014 13:09:55 +0000
(15:09 +0200)
src/openldap.c
patch
|
blob
|
history
diff --git
a/src/openldap.c
b/src/openldap.c
index
08c6503
..
46d9267
100644
(file)
--- a/
src/openldap.c
+++ b/
src/openldap.c
@@
-66,9
+66,8
@@
static int ldap_init_host (ldap_t *st) /* {{{ */
rc = ldap_initialize (&ld, st->url);
if (rc != LDAP_SUCCESS)
{
- char errbuf[1024];
- sstrerror (errno, errbuf, sizeof (errbuf));
- ERROR ("ldap_initialize failed: %s", errbuf);
+ ERROR ("openldap plugin: ldap_initialize failed: %s",
+ ldap_err2string (rc));
st->state = 0;
return (-1);
}