Change uint_t to unsigned int in source4
[sfrench/samba-autobuild/.git] / source4 / torture / raw / write.c
index ff82dc19d8a25d656f04f227f1442adf20b3eeeb..a1fde16611cf33f8e152ff3a89145352ff92656f 100644 (file)
@@ -66,7 +66,7 @@
 /*
   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);
@@ -76,7 +76,7 @@ static void setup_buffer(uint8_t *buf, uint_t seed, int len)
 /*
   check a random buffer based on a seed
 */
-static bool check_buffer(uint8_t *buf, uint_t seed, int len, const char *location)
+static bool check_buffer(uint8_t *buf, unsigned int seed, int len, const char *location)
 {
        int i;
        srandom(seed);
@@ -104,7 +104,7 @@ static bool test_write(struct torture_context *tctx,
        uint8_t *buf;
        const int maxsize = 90000;
        const char *fname = BASEDIR "\\test.txt";
-       uint_t seed = time(NULL);
+       unsigned int seed = time(NULL);
        union smb_fileinfo finfo;
 
        buf = talloc_zero_array(tctx, uint8_t, maxsize);
@@ -232,7 +232,7 @@ static bool test_writex(struct torture_context *tctx,
        uint8_t *buf;
        const int maxsize = 90000;
        const char *fname = BASEDIR "\\test.txt";
-       uint_t seed = time(NULL);
+       unsigned int seed = time(NULL);
        union smb_fileinfo finfo;
        int max_bits=63;
 
@@ -420,7 +420,7 @@ static bool test_writeunlock(struct torture_context *tctx,
        uint8_t *buf;
        const int maxsize = 90000;
        const char *fname = BASEDIR "\\test.txt";
-       uint_t seed = time(NULL);
+       unsigned int seed = time(NULL);
        union smb_fileinfo finfo;
 
        buf = talloc_zero_array(tctx, uint8_t, maxsize);
@@ -568,7 +568,7 @@ static bool test_writeclose(struct torture_context *tctx,
        uint8_t *buf;
        const int maxsize = 90000;
        const char *fname = BASEDIR "\\test.txt";
-       uint_t seed = time(NULL);
+       unsigned int seed = time(NULL);
        union smb_fileinfo finfo;
 
        buf = talloc_zero_array(tctx, uint8_t, maxsize);