summaryrefslogtreecommitdiff
path: root/source4/torture/locktest.c
diff options
context:
space:
mode:
authorMatt Kraai <mkraai@beckman.com>2010-01-05 09:42:54 -0800
committerStefan Metzmacher <metze@samba.org>2010-02-02 07:18:18 +0100
commitd8071e7ed7c57e8b0f2d80420e27f9ea7ab63022 (patch)
tree9ee0823d8f3e43217989f15c442ab747e84d22c2 /source4/torture/locktest.c
parenta47b6ebb3036f5073fdb2320b584345d3604c38d (diff)
downloadsamba-d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022.tar.gz
Change uint_t to unsigned int in source4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture/locktest.c')
-rw-r--r--source4/torture/locktest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c
index 12be00f2988..17a46a482a0 100644
--- a/source4/torture/locktest.c
+++ b/source4/torture/locktest.c
@@ -33,9 +33,9 @@ static int showall;
static int analyze;
static int hide_unlock_fails;
static int use_oplocks;
-static uint_t lock_range = 100;
-static uint_t lock_base = 0;
-static uint_t min_length = 0;
+static unsigned int lock_range = 100;
+static unsigned int lock_base = 0;
+static unsigned int min_length = 0;
static int exact_error_codes;
static int zero_zero;
@@ -216,8 +216,8 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS],
int fnum[NSERVERS][NCONNECTIONS][NFILES],
struct record *rec)
{
- uint_t conn = rec->conn;
- uint_t f = rec->f;
+ unsigned int conn = rec->conn;
+ unsigned int f = rec->f;
uint64_t start = rec->start;
uint64_t len = rec->len;
enum brl_type op = rec->lock_type;
@@ -426,7 +426,7 @@ static int test_locks(struct tevent_context *ev,
#endif
recorded[n].conn = random() % NCONNECTIONS;
recorded[n].f = random() % NFILES;
- recorded[n].start = lock_base + ((uint_t)random() % (lock_range-1));
+ recorded[n].start = lock_base + ((unsigned int)random() % (lock_range-1));
recorded[n].len = min_length +
random() % (lock_range-(recorded[n].start-lock_base));
recorded[n].start *= RANGE_MULTIPLE;