git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
659ec79
)
s3-torture Fix t_strappend test
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 26 Oct 2011 06:13:16 +0000
(17:13 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 28 Oct 2011 11:10:27 +0000
(13:10 +0200)
source3/torture/t_strappend.c
patch
|
blob
|
history
diff --git
a/source3/torture/t_strappend.c
b/source3/torture/t_strappend.c
index becc691c7f926abea3bb979f65e9f568e0af609b..64ff10a22c7812863d7f1e66022450402992929a 100644
(file)
--- 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;
{
TALLOC_CTX *mem_ctx;
char *string = NULL;
-
in
t len = 0;
-
in
t bufsize = 4;
+
ssize_
t len = 0;
+
size_
t bufsize = 4;
int i;
mem_ctx = talloc_init("t_strappend");
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) {
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);
fflush(stdout);
}
sprintf_append(mem_ctx, &string, &len, &bufsize, "%d\n", i);