From f88bf54c7f6d1c2ef833047eb8327953c304b5ff Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 25 May 2004 17:24:24 +0000 Subject: r889: convert samba4 to use [u]int16_t instead of [u]int16 metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3) --- source4/torture/basic/aliases.c | 18 ++++++++-------- source4/torture/basic/scanner.c | 2 +- source4/torture/gentest.c | 46 ++++++++++++++++++++--------------------- source4/torture/nbench/nbio.c | 2 +- source4/torture/raw/context.c | 2 +- source4/torture/raw/open.c | 4 ++-- source4/torture/raw/oplock.c | 6 +++--- source4/torture/rpc/dfs.c | 8 +++---- source4/torture/rpc/lsa.c | 2 +- source4/torture/rpc/samr.c | 34 +++++++++++++++--------------- source4/torture/rpc/spoolss.c | 6 +++--- source4/torture/rpc/winreg.c | 2 +- source4/torture/rpc/wkssvc.c | 2 +- source4/torture/torture.c | 10 ++++----- source4/torture/torture_util.c | 2 +- 15 files changed, 73 insertions(+), 73 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/basic/aliases.c b/source4/torture/basic/aliases.c index c4d6f94700..9fe2baa300 100644 --- a/source4/torture/basic/aliases.c +++ b/source4/torture/basic/aliases.c @@ -24,7 +24,7 @@ int create_complex_file(struct cli_state *cli, TALLOC_CTX *mem_ctx, const char * struct trans2_blobs { struct trans2_blobs *next, *prev; - uint16 level; + uint16_t level; DATA_BLOB params, data; }; @@ -32,7 +32,7 @@ struct trans2_blobs { static void gen_aliases(struct cli_state *cli, struct smb_trans2 *t2, int level_offset) { TALLOC_CTX *mem_ctx; - uint16 level; + uint16_t level; struct trans2_blobs *alias_blobs = NULL; struct trans2_blobs *t2b, *t2b2; int count=0, alias_count=0; @@ -81,7 +81,7 @@ static void gen_aliases(struct cli_state *cli, struct smb_trans2 *t2, int level_ static void qfsinfo_aliases(struct cli_state *cli) { struct smb_trans2 t2; - uint16 setup = TRANSACT2_QFSINFO; + uint16_t setup = TRANSACT2_QFSINFO; d_printf("\nChecking for QFSINFO aliases\n"); @@ -102,7 +102,7 @@ static void qfsinfo_aliases(struct cli_state *cli) static void qfileinfo_aliases(struct cli_state *cli) { struct smb_trans2 t2; - uint16 setup = TRANSACT2_QFILEINFO; + uint16_t setup = TRANSACT2_QFILEINFO; const char *fname = "\\qfileinfo_aliases.txt"; int fnum; @@ -139,7 +139,7 @@ static void qfileinfo_aliases(struct cli_state *cli) static void qpathinfo_aliases(struct cli_state *cli) { struct smb_trans2 t2; - uint16 setup = TRANSACT2_QPATHINFO; + uint16_t setup = TRANSACT2_QPATHINFO; const char *fname = "\\qpathinfo_aliases.txt"; int fnum; TALLOC_CTX *mem_ctx; @@ -183,7 +183,7 @@ static void qpathinfo_aliases(struct cli_state *cli) static void findfirst_aliases(struct cli_state *cli) { struct smb_trans2 t2; - uint16 setup = TRANSACT2_FINDFIRST; + uint16_t setup = TRANSACT2_FINDFIRST; const char *fname = "\\findfirst_aliases.txt"; int fnum; TALLOC_CTX *mem_ctx; @@ -232,7 +232,7 @@ static void findfirst_aliases(struct cli_state *cli) static void gen_set_aliases(struct cli_state *cli, struct smb_trans2 *t2, int level_offset) { TALLOC_CTX *mem_ctx; - uint16 level; + uint16_t level; struct trans2_blobs *alias_blobs = NULL; struct trans2_blobs *t2b; int count=0, dsize; @@ -298,7 +298,7 @@ static void gen_set_aliases(struct cli_state *cli, struct smb_trans2 *t2, int le static void setfileinfo_aliases(struct cli_state *cli) { struct smb_trans2 t2; - uint16 setup = TRANSACT2_SETFILEINFO; + uint16_t setup = TRANSACT2_SETFILEINFO; const char *fname = "\\setfileinfo_aliases.txt"; int fnum; @@ -335,7 +335,7 @@ static void setfileinfo_aliases(struct cli_state *cli) static void setpathinfo_aliases(struct cli_state *cli) { struct smb_trans2 t2; - uint16 setup = TRANSACT2_SETPATHINFO; + uint16_t setup = TRANSACT2_SETPATHINFO; const char *fname = "\\setpathinfo_aliases.txt"; int fnum; TALLOC_CTX *mem_ctx; diff --git a/source4/torture/basic/scanner.c b/source4/torture/basic/scanner.c index 7368528200..cf513414e8 100644 --- a/source4/torture/basic/scanner.c +++ b/source4/torture/basic/scanner.c @@ -53,7 +53,7 @@ static NTSTATUS try_trans2(struct cli_state *cli, { NTSTATUS status; struct smb_trans2 t2; - uint16 setup = op; + uint16_t setup = op; TALLOC_CTX *mem_ctx; mem_ctx = talloc_init("try_trans2"); diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 1f33257e6a..c66f5161d5 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -68,8 +68,8 @@ static struct { /* oplock break info */ static struct { BOOL got_break; - uint16 fnum; - uint16 handle; + uint16_t fnum; + uint16_t handle; uint8 level; BOOL do_close; } oplocks[NSERVERS][NINSTANCES]; @@ -94,7 +94,7 @@ static struct { #define BAD_HANDLE 0xFFFE -static BOOL oplock_handler(struct cli_transport *transport, uint16 tid, uint16 fnum, uint8 level, void *private); +static BOOL oplock_handler(struct cli_transport *transport, uint16_t tid, uint16_t fnum, uint8 level, void *private); static void idle_func(struct cli_transport *transport, void *private); /* @@ -206,7 +206,7 @@ static uint_t time_skew(void) /* turn an fnum for an instance into a handle */ -static uint_t fnum_to_handle(int server, int instance, uint16 fnum) +static uint_t fnum_to_handle(int server, int instance, uint16_t fnum) { uint_t i; for (i=0;itransport; tid = SVAL(req->in.hdr, HDR_TID); @@ -704,7 +704,7 @@ static void async_notify(struct cli_request *req) /* the oplock handler will either ack the break or close the file */ -static BOOL oplock_handler(struct cli_transport *transport, uint16 tid, uint16 fnum, uint8 level, void *private) +static BOOL oplock_handler(struct cli_transport *transport, uint16_t tid, uint16_t fnum, uint8 level, void *private) { union smb_close io; NTSTATUS status; @@ -852,7 +852,7 @@ again: for (j=0;jtree, fname); diff --git a/source4/torture/rpc/dfs.c b/source4/torture/rpc/dfs.c index 3aa17b6ecc..30c352680a 100644 --- a/source4/torture/rpc/dfs.c +++ b/source4/torture/rpc/dfs.c @@ -39,7 +39,7 @@ static BOOL test_Exist(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) return True; } -static BOOL test_InfoLevel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint16 level, +static BOOL test_InfoLevel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint16_t level, const char *root) { NTSTATUS status; @@ -64,7 +64,7 @@ static BOOL test_InfoLevel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint16 le static BOOL test_Info(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, const char *root) { BOOL ret = True; - uint16 levels[] = {1, 2, 3, 4, 100, 101, 102, 200, 300}; + uint16_t levels[] = {1, 2, 3, 4, 100, 101, 102, 200, 300}; int i; for (i=0;i