summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
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/rpc
parenta47b6ebb3036f5073fdb2320b584345d3604c38d (diff)
downloadsamba-d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022.tar.gz
samba-d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022.tar.bz2
samba-d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022.zip
Change uint_t to unsigned int in source4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/echo.c10
-rw-r--r--source4/torture/rpc/lsa.c4
-rw-r--r--source4/torture/rpc/session_key.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index 4fd2694926..043b386efd 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -268,19 +268,19 @@ static bool test_sleep(struct torture_context *tctx,
talloc_asprintf(tctx, "TestSleep(%d) failed", i));
torture_assert(tctx, r[i].out.result == r[i].in.seconds,
talloc_asprintf(tctx, "Failed - Asked to sleep for %u seconds (server replied with %u seconds and the reply takes only %u seconds)",
- r[i].out.result, r[i].in.seconds, (uint_t)diff[i].tv_sec));
+ r[i].out.result, r[i].in.seconds, (unsigned int)diff[i].tv_sec));
torture_assert(tctx, r[i].out.result <= rounded_tdiff,
talloc_asprintf(tctx, "Failed - Slept for %u seconds (but reply takes only %u.%06u seconds)",
- r[i].out.result, (uint_t)diff[i].tv_sec, (uint_t)diff[i].tv_usec));
+ r[i].out.result, (unsigned int)diff[i].tv_sec, (unsigned int)diff[i].tv_usec));
if (r[i].out.result+1 == rounded_tdiff) {
torture_comment(tctx, "Slept for %u seconds (but reply takes %u.%06u seconds - busy server?)\n",
- r[i].out.result, (uint_t)diff[i].tv_sec, (uint_t)diff[i].tv_usec);
+ r[i].out.result, (unsigned int)diff[i].tv_sec, (unsigned int)diff[i].tv_usec);
} else if (r[i].out.result == rounded_tdiff) {
torture_comment(tctx, "Slept for %u seconds (reply takes %u.%06u seconds - ok)\n",
- r[i].out.result, (uint_t)diff[i].tv_sec, (uint_t)diff[i].tv_usec);
+ r[i].out.result, (unsigned int)diff[i].tv_sec, (unsigned int)diff[i].tv_usec);
} else {
torture_comment(tctx, "(Failed) - Not async - Slept for %u seconds (but reply takes %u.%06u seconds)",
- r[i].out.result, (uint_t)diff[i].tv_sec, (uint_t)diff[i].tv_usec);
+ r[i].out.result, (unsigned int)diff[i].tv_sec, (unsigned int)diff[i].tv_usec);
/* TODO: let the test fail here, when we support async rpc on ncacn_np */
}
}
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c
index cff42a2aab..22fb28f076 100644
--- a/source4/torture/rpc/lsa.c
+++ b/source4/torture/rpc/lsa.c
@@ -1219,8 +1219,8 @@ static bool test_CreateSecret(struct dcerpc_pipe *p,
const int LOCAL = 0;
const int GLOBAL = 1;
- secname[LOCAL] = talloc_asprintf(tctx, "torturesecret-%u", (uint_t)random());
- secname[GLOBAL] = talloc_asprintf(tctx, "G$torturesecret-%u", (uint_t)random());
+ secname[LOCAL] = talloc_asprintf(tctx, "torturesecret-%u", (unsigned int)random());
+ secname[GLOBAL] = talloc_asprintf(tctx, "G$torturesecret-%u", (unsigned int)random());
for (i=0; i< 2; i++) {
torture_comment(tctx, "\nTesting CreateSecret of %s\n", secname[i]);
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c
index d0a2009fd1..a0bd40124d 100644
--- a/source4/torture/rpc/session_key.c
+++ b/source4/torture/rpc/session_key.c
@@ -52,7 +52,7 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p,
char *secret2;
char *secname;
- secname = talloc_asprintf(tctx, "torturesecret-%u", (uint_t)random());
+ secname = talloc_asprintf(tctx, "torturesecret-%u", (unsigned int)random());
torture_comment(tctx, "Testing CreateSecret of %s\n", secname);