diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-07-20 13:02:47 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-07-20 13:02:47 +0000 |
commit | 30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6 (patch) | |
tree | 92267ca941b30f8981ff7aaff4ee63f3568c4035 /source/utils | |
parent | 860f5b1a0c1898f1ce380d249610eeaaeb43b9e0 (diff) | |
download | samba-30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6.tar.gz samba-30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6.tar.xz samba-30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6.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
Diffstat (limited to 'source/utils')
-rw-r--r-- | source/utils/net_rpc_join.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/utils/net_rpc_join.c b/source/utils/net_rpc_join.c index cc1a203ca13..61adb2a8ff7 100644 --- a/source/utils/net_rpc_join.c +++ b/source/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))); |