From e62c5c9a8dd1258b776d40918026a1be4b71fb72 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Nov 2003 09:34:19 +0000 Subject: use [subcontext] to make GetPrinter a bit easier in smbtorture (This used to be commit a5140985d8f57695b4165c72af217092da6fae5f) --- source4/torture/rpc/echo.c | 5 +++-- source4/torture/rpc/spoolss.c | 20 +++++--------------- 2 files changed, 8 insertions(+), 17 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 1e6328f3b4..3ae0c76a74 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -170,6 +170,9 @@ static BOOL test_testcall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) { NTSTATUS status; struct TestCall r; + char *s = "foo!"; + + r.in.s = s; printf("\nTesting TestCall\n"); status = dcerpc_TestCall(p, mem_ctx, &r); @@ -178,8 +181,6 @@ static BOOL test_testcall(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) return False; } - NDR_PRINT_DEBUG(Struct1, r.out.s1); - return True; } diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index c44c2a1db8..895677eba3 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -26,14 +26,12 @@ BOOL test_GetPrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, { NTSTATUS status; struct spoolss_GetPrinter r; - uint32 buf_size = 0; - DATA_BLOB blob; - union spoolss_PrinterInfo info; uint16 levels[] = {1, 2, 3, 4, 5, 6, 7}; int i; BOOL ret = True; for (i=0;i