summaryrefslogtreecommitdiffstats
path: root/source/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-20 11:58:06 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-20 11:58:06 +0000
commit8196ee908e10db2119e480fe1b0a71b31a16febc (patch)
treeff20f0a5d5445ed7b42b830d6bae3c2cf306868f /source/utils
parent2a3d821c77c7648de43b11dd951f6f16d7be5b3c (diff)
downloadsamba-8196ee908e10db2119e480fe1b0a71b31a16febc.tar.gz
samba-8196ee908e10db2119e480fe1b0a71b31a16febc.tar.xz
samba-8196ee908e10db2119e480fe1b0a71b31a16febc.zip
Try to fix up warnings - particularly on the IRIX 64 bit compiler (which had a
distinction between uchar and char). Lots of const etc. Andrew Bartlett
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/net_lookup.c7
-rw-r--r--source/utils/net_rpc.c4
2 files changed, 6 insertions, 5 deletions
diff --git a/source/utils/net_lookup.c b/source/utils/net_lookup.c
index a324f594a1f..a9aa0800549 100644
--- a/source/utils/net_lookup.c
+++ b/source/utils/net_lookup.c
@@ -77,7 +77,8 @@ static void print_ldap_srvlist(char *srvlist)
static int net_lookup_ldap(int argc, const char **argv)
{
#ifdef HAVE_LDAP
- char *srvlist, *domain;
+ char *srvlist;
+ const char *domain;
int rc, count;
struct in_addr *addr;
struct hostent *hostent;
@@ -125,7 +126,7 @@ static int net_lookup_dc(int argc, const char **argv)
{
struct in_addr *ip_list;
char *pdc_str = NULL;
- char *domain=opt_target_workgroup;
+ const char *domain=opt_target_workgroup;
int count, i;
if (argc > 0)
@@ -154,7 +155,7 @@ static int net_lookup_dc(int argc, const char **argv)
static int net_lookup_master(int argc, const char **argv)
{
struct in_addr master_ip;
- char *domain=opt_target_workgroup;
+ const char *domain=opt_target_workgroup;
if (argc > 0)
domain=argv[0];
diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c
index dc50c438d49..dceb5ffd504 100644
--- a/source/utils/net_rpc.c
+++ b/source/utils/net_rpc.c
@@ -244,7 +244,7 @@ static NTSTATUS rpc_join_oldstyle_internals(const DOM_SID *domain_sid, struct cl
trust_passwd[14] = '\0';
- E_md4hash( (uchar *)trust_passwd, orig_trust_passwd_hash);
+ E_md4hash(trust_passwd, orig_trust_passwd_hash);
return trust_pw_change_and_store_it(cli, mem_ctx, orig_trust_passwd_hash);
}
@@ -1221,7 +1221,7 @@ rpc_file_list_internals(const DOM_SID *domain_sid, struct cli_state *cli,
WERROR result;
ENUM_HND hnd;
uint32 preferred_len = 0xffffffff, i;
- char *username=NULL;
+ const char *username=NULL;
init_enum_hnd(&hnd, 0);