summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-15 07:45:51 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-15 07:45:51 +0000
commita27d434c4b4363762e7a0d5eeddd35e2b8dbb374 (patch)
treecf83b7931f7ba94d10ba73cd3d76da39b1f6ca2b /source3/utils
parentd8549b0360b86f151a8cd221838d005e083bfba8 (diff)
downloadsamba-a27d434c4b4363762e7a0d5eeddd35e2b8dbb374.tar.gz
samba-a27d434c4b4363762e7a0d5eeddd35e2b8dbb374.tar.bz2
samba-a27d434c4b4363762e7a0d5eeddd35e2b8dbb374.zip
Fix signed/unsigned issues - mostly 'i' counters.
Fix an inconpatible poitner type that caused the IA64 not to build Andrew Bartlett (This used to be commit 37436b0aae108fceace3049d3868510e1ba592ac)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads_cldap.c8
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);