struct record {
enum lock_op lock_op;
- int lock_type;
+ enum brl_type lock_type;
char conn, f;
SMB_BIG_UINT start, len;
char needed;
unsigned f = rec->f;
SMB_BIG_UINT start = rec->start;
SMB_BIG_UINT len = rec->len;
- unsigned op = rec->lock_type;
+ enum brl_type op = rec->lock_type;
int server;
BOOL ret[NSERVERS];
static BOOL try_lock(struct cli_state *c, int fstype,
int fd, unsigned start, unsigned len,
- int op)
+ enum brl_type op)
{
struct flock lock;
unsigned len = rec->len;
unsigned r1 = rec->r1;
unsigned r2 = rec->r2;
- unsigned op;
+ enum brl_type op;
int server;
BOOL ret[NSERVERS];
char buf_rd[131072];
unsigned count;
unsigned countprev = 0;
- unsigned sent = 0;
+ ssize_t sent = 0;
BOOL correct = True;
srandom(1);
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;
}
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;