diff options
author | rob <rob@cvs.openbsd.org> | 2018-08-12 22:04:10 +0000 |
---|---|---|
committer | rob <rob@cvs.openbsd.org> | 2018-08-12 22:04:10 +0000 |
commit | ed4ba547919184d93efa4623461e0a5bf3056aa3 (patch) | |
tree | 24df9bd3d72f0c0605ded845fe89a82305a32fdb /usr.bin/ldap/aldap.c | |
parent | ec9b6ecff22d514bf78f1ed54e8bd8f9c48e9852 (diff) |
Change ber_write_elements() to return ssize_t instead of int.
ok claudio@
Diffstat (limited to 'usr.bin/ldap/aldap.c')
-rw-r--r-- | usr.bin/ldap/aldap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ldap/aldap.c b/usr.bin/ldap/aldap.c index b5a0c86c431..569286f2793 100644 --- a/usr.bin/ldap/aldap.c +++ b/usr.bin/ldap/aldap.c @@ -1,5 +1,5 @@ -/* $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 $ */ +/* $Id: aldap.c,v 1.5 2018/08/12 22:04:09 rob Exp $ */ +/* $OpenBSD: aldap.c,v 1.5 2018/08/12 22:04:09 rob Exp $ */ /* * Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org> @@ -126,10 +126,10 @@ aldap_tls(struct aldap *ldap, struct tls_config *cfg, const char *name) int aldap_send(struct aldap *ldap, struct ber_element *root) { - int error, wrote; void *ptr; char *data; size_t len, done; + ssize_t error, wrote; len = ber_calc_len(root); error = ber_write_elements(&ldap->ber, root); @@ -311,7 +311,7 @@ int aldap_create_page_control(struct ber_element *elm, int size, struct aldap_page_control *page) { - int len; + ssize_t len; struct ber c; struct ber_element *ber = NULL; |