summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-20 13:02:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-20 13:02:47 +0000
commit29075c97d3b7111e2565ede1cd0f000fd2534375 (patch)
tree683ef138ee8a4ddd5cf078222ca433fc808d6423 /source3/utils
parent9175bd2fe79684066a08e09860cf3a0bdb02d5c5 (diff)
downloadsamba-29075c97d3b7111e2565ede1cd0f000fd2534375.tar.gz
samba-29075c97d3b7111e2565ede1cd0f000fd2534375.tar.bz2
samba-29075c97d3b7111e2565ede1cd0f000fd2534375.zip
More fixes towards warnings on the IRIX compiler
(and yes, some of these are real bugs) In particular, the samr code was doing an &foo of various types, to a function that assumed uint32. If time_t isn't 32 bits long, that broke. They are assignment compatible however, so use that and an intermediate variable. Andrew Bartlett (This used to be commit 30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_join.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c
index cc1a203ca1..61adb2a8ff 100644
--- a/source3/utils/net_rpc_join.c
+++ b/source3/utils/net_rpc_join.c
@@ -80,8 +80,9 @@ int net_rpc_join_newstyle(int argc, const char **argv)
fstring domain;
uint32 num_rids, *name_types, *user_rids;
uint32 flags = 0x3e8;
- const char *acct_name;
-
+ char *acct_name;
+ const char *const_acct_name;
+
/* Connect to remote machine */
if (!(cli = net_make_ipc_connection(NET_FLAGS_PDC)))
@@ -162,7 +163,8 @@ int net_rpc_join_newstyle(int argc, const char **argv)
CHECK_RPC_ERR_DEBUG(cli_samr_lookup_names(cli, mem_ctx,
&domain_pol, flags,
- 1, &acct_name, &num_rids,
+ 1, &const_acct_name,
+ &num_rids,
&user_rids, &name_types),
("error looking up rid for user %s: %s\n",
acct_name, nt_errstr(result)));