From d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Tue, 5 Jan 2010 09:42:54 -0800 Subject: Change uint_t to unsigned int in source4 Signed-off-by: Stefan Metzmacher --- source4/torture/locktest.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/torture/locktest.c') diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c index 12be00f298..17a46a482a 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; -- cgit