summaryrefslogtreecommitdiff
path: root/usr.bin/ldap
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ldap')
-rw-r--r--usr.bin/ldap/aldap.c8
-rw-r--r--usr.bin/ldap/ber.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/ldap/aldap.c b/usr.bin/ldap/aldap.c
index 4c0f87004bd..b5a0c86c431 100644
--- a/usr.bin/ldap/aldap.c
+++ b/usr.bin/ldap/aldap.c
@@ -1,5 +1,5 @@
-/* $Id: aldap.c,v 1.3 2018/07/31 11:02:01 claudio Exp $ */
-/* $OpenBSD: aldap.c,v 1.3 2018/07/31 11:02:01 claudio Exp $ */
+/* $Id: aldap.c,v 1.4 2018/07/31 11:37:18 rob Exp $ */
+/* $OpenBSD: aldap.c,v 1.4 2018/07/31 11:37:18 rob Exp $ */
/*
* Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
@@ -1217,7 +1217,7 @@ ldap_debug_elements(struct ber_element *root)
break;
case BER_CLASS_PRIVATE:
fprintf(stderr, "class: private(%u) type: ", root->be_class);
- fprintf(stderr, "encoding (%lu) type: ", root->be_encoding);
+ fprintf(stderr, "encoding (%u) type: ", root->be_encoding);
break;
case BER_CLASS_CONTEXT:
/* XXX: this is not correct */
@@ -1232,7 +1232,7 @@ ldap_debug_elements(struct ber_element *root)
fprintf(stderr, "class: <INVALID>(%u) type: ", root->be_class);
break;
}
- fprintf(stderr, "(%lu) encoding %lu ",
+ fprintf(stderr, "(%u) encoding %u ",
root->be_type, root->be_encoding);
if (constructed)
diff --git a/usr.bin/ldap/ber.c b/usr.bin/ldap/ber.c
index 2eef9d7d80d..981595fc4ce 100644
--- a/usr.bin/ldap/ber.c
+++ b/usr.bin/ldap/ber.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber.c,v 1.15 2018/07/31 11:02:01 claudio Exp $ */
+/* $OpenBSD: ber.c,v 1.16 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)