summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-30 17:32:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:02 -0500
commitbb5c820542c4042e4a14e5a50969d7aa5279db6c (patch)
tree97ad2479102aa2a17f77ac91a1a2d5b7a9c44c82 /source3
parent69287da6339dcd7e08a77eb185dfa7b5ab09a374 (diff)
downloadsamba-bb5c820542c4042e4a14e5a50969d7aa5279db6c.tar.gz
samba-bb5c820542c4042e4a14e5a50969d7aa5279db6c.tar.bz2
samba-bb5c820542c4042e4a14e5a50969d7aa5279db6c.zip
r19013: Fix some 64-bit warnings.
Jelmer, Jerry, in cmd_unixinfo.c:159 there is still the warning that "info" is being used uninitialized which I don't really know how to fix. Any hints? Volker (This used to be commit 4a5d11e194ebdfb6c21586d1cf902f8ed2478e45)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c4
-rw-r--r--source3/rpcclient/cmd_samr.c6
-rw-r--r--source3/rpcclient/cmd_unixinfo.c11
3 files changed, 11 insertions, 10 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index e94b4bc7a6..96642ed65b 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -63,9 +63,9 @@ static void display_query_info_1(DOM_QUERY_1 d)
{
d_printf("percent_full:\t%d\n", d.percent_full);
d_printf("log_size:\t%d\n", d.log_size);
- d_printf("retention_time:\t%lld\n", d.retention_time);
+ d_printf("retention_time:\t%lld\n", (long long)d.retention_time);
d_printf("shutdown_in_progress:\t%d\n", d.shutdown_in_progress);
- d_printf("time_to_shutdown:\t%lld\n", d.time_to_shutdown);
+ d_printf("time_to_shutdown:\t%lld\n", (long long)d.time_to_shutdown);
d_printf("next_audit_record:\t%d\n", d.next_audit_record);
d_printf("unknown:\t%d\n", d.unknown);
}
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 04ffa002d2..fd3826d007 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -165,7 +165,7 @@ static void display_sam_unk_info_2(SAM_UNK_INFO_2 *info2)
printf("Total Groups:\t%d\n", info2->num_domain_grps);
printf("Total Aliases:\t%d\n", info2->num_local_grps);
- printf("Sequence No:\t%lld\n", info2->seq_num);
+ printf("Sequence No:\t%llu\n", (unsigned long long)info2->seq_num);
printf("Force Logoff:\t%d\n", (int)nt_time_to_unix_abs(&info2->logout));
@@ -210,7 +210,7 @@ static void display_sam_unk_info_7(SAM_UNK_INFO_7 *info7)
static void display_sam_unk_info_8(SAM_UNK_INFO_8 *info8)
{
- printf("Sequence No:\t%lld\n", info8->seq_num);
+ printf("Sequence No:\t%llu\n", (unsigned long long)info8->seq_num);
printf("Domain Create Time:\t%s\n",
http_timestring(nt_time_to_unix(info8->domain_create_time)));
}
@@ -229,7 +229,7 @@ static void display_sam_unk_info_12(SAM_UNK_INFO_12 *info12)
static void display_sam_unk_info_13(SAM_UNK_INFO_13 *info13)
{
- printf("Sequence No:\t%lld\n", info13->seq_num);
+ printf("Sequence No:\t%llu\n", (unsigned long long)info13->seq_num);
printf("Domain Create Time:\t%s\n",
http_timestring(nt_time_to_unix(info13->domain_create_time)));
printf("Unknown1:\t%d\n", info13->unknown1);
diff --git a/source3/rpcclient/cmd_unixinfo.c b/source3/rpcclient/cmd_unixinfo.c
index 5d13955841..4301e43167 100644
--- a/source3/rpcclient/cmd_unixinfo.c
+++ b/source3/rpcclient/cmd_unixinfo.c
@@ -70,7 +70,7 @@ static NTSTATUS cmd_unixinfo_sid2uid(struct rpc_pipe_client *cli,
if (!NT_STATUS_IS_OK(result))
goto done;
- printf("%llu\n", uid);
+ printf("%llu\n", (unsigned long long)uid);
done:
return result;
@@ -125,7 +125,7 @@ static NTSTATUS cmd_unixinfo_sid2gid(struct rpc_pipe_client *cli,
if (!NT_STATUS_IS_OK(result))
goto done;
- printf("%llu\n", gid);
+ printf("%llu\n", (unsigned long long)gid);
done:
return result;
@@ -164,10 +164,11 @@ static NTSTATUS cmd_unixinfo_getpwuid(struct rpc_pipe_client *cli,
for (i=0; i<num_uids; i++) {
if (NT_STATUS_IS_OK(info[i].status)) {
- printf("%llu:%s:%s\n", uids[i], info[i].homedir,
- info[i].shell);
+ printf("%llu:%s:%s\n", (unsigned long long)uids[i],
+ info[i].homedir, info[i].shell);
} else {
- printf("%llu:%s\n", uids[i], nt_errstr(info[i].status));
+ printf("%llu:%s\n", (unsigned long long)uids[i],
+ nt_errstr(info[i].status));
}
}