/*
setup a random buffer based on a seed
*/
-static void setup_buffer(uint8_t *buf, uint_t seed, int len)
+static void setup_buffer(uint8_t *buf, unsigned int seed, int len)
{
int i;
srandom(seed);
/*
check a random buffer based on a seed
*/
-static bool check_buffer(uint8_t *buf, uint_t seed, int len, int line)
+static bool check_buffer(uint8_t *buf, unsigned int seed, int len, int line)
{
int i;
srandom(seed);
const int maxsize = 90000;
const char *fname = BASEDIR "\\test.txt";
const char *test_data = "TEST DATA";
- uint_t seed = time(NULL);
+ unsigned int seed = time(NULL);
buf = talloc_zero_array(tctx, uint8_t, maxsize);
const int maxsize = 90000;
const char *fname = BASEDIR "\\test.txt";
const char *test_data = "TEST DATA";
- uint_t seed = time(NULL);
+ unsigned int seed = time(NULL);
+
+ if (!cli->transport->negotiate.lockread_supported) {
+ printf("Server does not support lockread - skipping\n");
+ return true;
+ }
buf = talloc_zero_array(tctx, uint8_t, maxsize);
const int maxsize = 90000;
const char *fname = BASEDIR "\\test.txt";
const char *test_data = "TEST DATA";
- uint_t seed = time(NULL);
+ unsigned int seed = time(NULL);
buf = talloc_zero_array(tctx, uint8_t, maxsize);
const int maxsize = 90000;
const char *fname = BASEDIR "\\test.txt";
const char *test_data = "TEST DATA";
- uint_t seed = time(NULL);
+ unsigned int seed = time(NULL);
if (!cli->transport->negotiate.readbraw_supported) {
printf("Server does not support readbraw - skipping\n");