diff options
author | reyk <reyk@openbsd.org> | 2018-05-15 11:19:21 +0000 |
---|---|---|
committer | reyk <reyk@openbsd.org> | 2018-05-15 11:19:21 +0000 |
commit | c0785a05bbd013898cc6bc4ae028cc5d76877512 (patch) | |
tree | b8b92e03bfd0d00c4f41cb2506e84f524f1f2c01 /usr.sbin/ldapctl/ldapctl.c | |
parent | Remove a4x bus space hack. (diff) | |
download | wireguard-openbsd-c0785a05bbd013898cc6bc4ae028cc5d76877512.tar.xz wireguard-openbsd-c0785a05bbd013898cc6bc4ae028cc5d76877512.zip |
Fix format string errors in log messages and update ldapd to use relayd's log.c
OK benno@ jmatthew@
Diffstat (limited to 'usr.sbin/ldapctl/ldapctl.c')
-rw-r--r-- | usr.sbin/ldapctl/ldapctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldapctl/ldapctl.c b/usr.sbin/ldapctl/ldapctl.c index 502bae9e629..35006cddebc 100644 --- a/usr.sbin/ldapctl/ldapctl.c +++ b/usr.sbin/ldapctl/ldapctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldapctl.c,v 1.10 2017/01/20 11:55:08 benno Exp $ */ +/* $OpenBSD: ldapctl.c,v 1.11 2018/05/15 11:19:21 reyk Exp $ */ /* * Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se> @@ -255,7 +255,7 @@ main(int argc, char *argv[]) struct imsg imsg; struct imsgbuf ibuf; - log_init(1); + log_init(1, 0); while ((ch = getopt(argc, argv, "f:r:s:v")) != -1) { switch (ch) { @@ -287,7 +287,7 @@ main(int argc, char *argv[]) if (!S_ISDIR(sb.st_mode)) errx(1, "%s is not a directory", datadir); - log_verbose(verbose); + ldap_loginit(NULL, 1, verbose); if (strcmp(argv[0], "stats") == 0) action = SHOW_STATS; |