diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-17 23:04:03 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-17 23:04:03 +0000 |
commit | e88eab35bc03a2d108b27f2209ec4cfb395dcdba (patch) | |
tree | 8a0e5c5ca43634c8146982ad9eb63165c9ea07c3 /source3/utils | |
parent | 83a580f49a3a7f5aff0aab3946faee0892239251 (diff) | |
download | samba-e88eab35bc03a2d108b27f2209ec4cfb395dcdba.tar.gz samba-e88eab35bc03a2d108b27f2209ec4cfb395dcdba.tar.bz2 samba-e88eab35bc03a2d108b27f2209ec4cfb395dcdba.zip |
Merge from HEAD:
signed/unsigned (mostly i counters)
a little bit of const.
Andrew Bartlett
(This used to be commit 50f0ca752e5058c4051f42a9337361373ba1f727)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_ads_cldap.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |