summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-16 08:24:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-16 08:24:44 +0000
commitf7f020021051ae143d52925aad4c8729ba4da411 (patch)
tree5676c13f221427310934856c327e7a359848a6d7 /source3/torture/torture.c
parent6ff605c2833940e26d35825db473171b28da986f (diff)
downloadsamba-f7f020021051ae143d52925aad4c8729ba4da411.tar.gz
samba-f7f020021051ae143d52925aad4c8729ba4da411.tar.bz2
samba-f7f020021051ae143d52925aad4c8729ba4da411.zip
Fix (I hope) for a number of little compile warnings found by the IRIX
compilers on the build farm. Andrew Bartlett (This used to be commit 0ff0a91a6baf7cf6b3ca59a2b4067cc07e3f2f88)
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r--source3/torture/torture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 11c09b2d41..fb581baa5e 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -330,7 +330,7 @@ static BOOL rw_torture3(struct cli_state *c, char *lockfname)
char buf_rd[131072];
unsigned count;
unsigned countprev = 0;
- unsigned sent = 0;
+ ssize_t sent = 0;
BOOL correct = True;
srandom(1);
@@ -382,7 +382,7 @@ static BOOL rw_torture3(struct cli_state *c, char *lockfname)
sent = sizeof(buf) - count;
}
- if (cli_write(c, fnum, 0, buf+count, count, sent) != sent) {
+ if (cli_write(c, fnum, 0, buf+count, count, (size_t)sent) != sent) {
printf("write failed (%s)\n", cli_errstr(c));
correct = False;
}
@@ -428,8 +428,8 @@ static BOOL rw_torture2(struct cli_state *c1, struct cli_state *c2)
int fnum1;
int fnum2;
int i;
- char buf[131072];
- char buf_rd[131072];
+ uchar buf[131072];
+ uchar buf_rd[131072];
BOOL correct = True;
ssize_t bytes_read;