summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd
diff options
context:
space:
mode:
authorrob <rob@openbsd.org>2018-07-31 11:37:18 +0000
committerrob <rob@openbsd.org>2018-07-31 11:37:18 +0000
commit79c62c2af6f7512b4cb6ca307843f8dbb786f49c (patch)
tree75befd80088f02515540eb2e4fcfe3a68e48f0a3 /usr.sbin/ldapd
parentMake ber type and encoding a unsigned int instead of unsigned long. (diff)
downloadwireguard-openbsd-79c62c2af6f7512b4cb6ca307843f8dbb786f49c.tar.xz
wireguard-openbsd-79c62c2af6f7512b4cb6ca307843f8dbb786f49c.zip
Fix some debugging output now that ber type and encoding are unsigned int.
ok claudio@
Diffstat (limited to 'usr.sbin/ldapd')
-rw-r--r--usr.sbin/ldapd/ber.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/ber.c b/usr.sbin/ldapd/ber.c
index 47a8cf891b6..e30f882aadd 100644
--- a/usr.sbin/ldapd/ber.c
+++ b/usr.sbin/ldapd/ber.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber.c,v 1.25 2018/07/31 11:01:00 claudio Exp $ */
+/* $OpenBSD: ber.c,v 1.26 2018/07/31 11:37:18 rob Exp $ */
/*
* Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -1100,7 +1100,7 @@ ber_read_element(struct ber *ber, struct ber_element *elm)
if ((r = get_id(ber, &type, &class, &cstruct)) == -1)
return -1;
- DPRINTF("ber read got class %d type %lu, %s\n",
+ DPRINTF("ber read got class %d type %u, %s\n",
class, type, cstruct ? "constructed" : "primitive");
totlen += r;
if ((r = get_len(ber, &len)) == -1)