diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-02-18 23:43:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:10:47 -0500 |
commit | 77701f6ca1b1e39d0f39612c5125d2f58d7630e1 (patch) | |
tree | bc8447c4ca7500dfdfafd7350e2f3c774f416947 /source4/torture | |
parent | ea5ddbcb4d531971ac9f252ed423d0ccecf56769 (diff) | |
download | samba-77701f6ca1b1e39d0f39612c5125d2f58d7630e1.tar.gz samba-77701f6ca1b1e39d0f39612c5125d2f58d7630e1.tar.bz2 samba-77701f6ca1b1e39d0f39612c5125d2f58d7630e1.zip |
r5453: Treat "embedded" arrays (surrounding structures) somewhat
more generically. The default functions for remembering array sizes
are now used rather then a special local variable.
(This used to be commit 5f7882341fa435a495fa7181537b5599e2fc7a0d)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/echo.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 8284157bd2..35df96c897 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -4,6 +4,7 @@ Copyright (C) Andrew Tridgell 2003 Copyright (C) Stefan (metze) Metzmacher 2005 + Copyright (C) Jelmer Vernooij 2005 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -351,12 +352,10 @@ static BOOL test_surrounding(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) return ret; } - - BOOL torture_rpc_echo(void) { - NTSTATUS status; - struct dcerpc_pipe *p; + NTSTATUS status; + struct dcerpc_pipe *p; TALLOC_CTX *mem_ctx; BOOL ret = True; @@ -377,13 +376,13 @@ BOOL torture_rpc_echo(void) ret &= test_testcall(p, mem_ctx); ret &= test_testcall2(p, mem_ctx); ret &= test_enum(p, mem_ctx); - ret &= test_sleep(p, mem_ctx); ret &= test_surrounding(p, mem_ctx); + ret &= test_sleep(p, mem_ctx); printf("\n"); talloc_free(mem_ctx); - torture_rpc_close(p); + torture_rpc_close(p); return ret; } |