summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-26 17:13:16 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-28 13:10:27 +0200
commitde148f748a41d3a5e47167f387fafc4956680562 (patch)
treeaaf1a2602cc3a63820be43cec6afb79f4cf360b3 /source3
parent659ec79245a9d9e5d45c380e8b82ec6236999032 (diff)
downloadsamba-de148f748a41d3a5e47167f387fafc4956680562.tar.gz
samba-de148f748a41d3a5e47167f387fafc4956680562.tar.bz2
samba-de148f748a41d3a5e47167f387fafc4956680562.zip
s3-torture Fix t_strappend test
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/t_strappend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/torture/t_strappend.c b/source3/torture/t_strappend.c
index becc691c7f..64ff10a22c 100644
--- a/source3/torture/t_strappend.c
+++ b/source3/torture/t_strappend.c
@@ -11,8 +11,8 @@ int main(int argc, char *argv[])
{
TALLOC_CTX *mem_ctx;
char *string = NULL;
- int len = 0;
- int bufsize = 4;
+ ssize_t len = 0;
+ size_t bufsize = 4;
int i;
mem_ctx = talloc_init("t_strappend");
@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
for (i=0; i<(100000); i++) {
if (i%1000 == 0) {
- printf("%d %d\r", i, bufsize);
+ printf("%d %lld\r", i, (long long int)bufsize);
fflush(stdout);
}
sprintf_append(mem_ctx, &string, &len, &bufsize, "%d\n", i);