From e88eab35bc03a2d108b27f2209ec4cfb395dcdba Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 17 Mar 2003 23:04:03 +0000 Subject: Merge from HEAD: signed/unsigned (mostly i counters) a little bit of const. Andrew Bartlett (This used to be commit 50f0ca752e5058c4051f42a9337361373ba1f727) --- source3/utils/net_ads_cldap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/utils/net_ads_cldap.c') diff --git a/source3/utils/net_ads_cldap.c b/source3/utils/net_ads_cldap.c index ad66af0439..86d5abea4b 100644 --- a/source3/utils/net_ads_cldap.c +++ b/source3/utils/net_ads_cldap.c @@ -59,7 +59,7 @@ struct cldap_netlogon_reply { */ static unsigned pull_netlogon_string(struct netlogon_string *ret,const char *d) { - char *p = (char *)d; + const char *p = (const char *)d; ZERO_STRUCTP(ret); @@ -140,7 +140,7 @@ static int send_cldap_netlogon(int sock, const char *domain, return -1; } - if (write(sock, data.data, data.length) != data.length) { + if (write(sock, data.data, data.length) != (ssize_t)data.length) { d_printf("failed to send cldap query (%s)\n", strerror(errno)); } @@ -233,7 +233,7 @@ static int recv_cldap_netlogon(int sock, struct cldap_netlogon_reply *reply) */ static void netlogon_string_free(struct netlogon_string *str) { - int i; + unsigned int i; for (i = 0; i < str->comp_len; ++i) { SAFE_FREE(str->component[i]); @@ -259,7 +259,7 @@ static void cldap_reply_free(struct cldap_netlogon_reply *reply) static void d_print_netlogon_string(const char *label, struct netlogon_string *str) { - int i; + unsigned int i; if (str->comp_len) { d_printf("%s", label); -- cgit