From 77701f6ca1b1e39d0f39612c5125d2f58d7630e1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 18 Feb 2005 23:43:40 +0000 Subject: 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) --- source4/torture/rpc/echo.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'source4/torture/rpc') 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; } -- cgit