diff options
author | Jeremy Allison <jra@samba.org> | 2014-06-04 14:12:38 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-06-07 03:15:14 +0200 |
commit | 66a04ba7c115d3be111296000e93cc18a1a05ef6 (patch) | |
tree | 69a53e6cf365caf4f106b586a1bb9d296a886f4d /source3/client | |
parent | 536c799f00d7bdd6a574b6bdbc0e9c742eeef8b5 (diff) | |
download | samba-66a04ba7c115d3be111296000e93cc18a1a05ef6.tar.gz |
s3: libsmb : Move users of cli_dskattr to a 64-bit interface cli_disk_free().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 592258ddf43..17985b9d2b8 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -298,7 +298,7 @@ static void send_message(const char *username) static int do_dskattr(void) { - int total, bsize, avail; + uint64_t total, bsize, avail; struct cli_state *targetcli = NULL; char *targetpath = NULL; TALLOC_CTX *ctx = talloc_tos(); @@ -312,14 +312,16 @@ static int do_dskattr(void) return 1; } - status = cli_dskattr(targetcli, &bsize, &total, &avail); + status = cli_disk_size(targetcli, &bsize, &total, &avail); if (!NT_STATUS_IS_OK(status)) { d_printf("Error in dskattr: %s\n", nt_errstr(status)); return 1; } - d_printf("\n\t\t%d blocks of size %d. %d blocks available\n", - total, bsize, avail); + d_printf("\n\t\t%" PRIu64 + " blocks of size %" PRIu64 + ". %" PRIu64 " blocks available\n", + total, bsize, avail); return 0; } |