From 0bf387e0f98ee50e90c573f9f9d30074bdde3660 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 31 Oct 2007 16:27:21 +0100 Subject: r25766: pidl: fix bugs in ndr_tagtype tests found by compiler warnings metze (This used to be commit 34af31cfb3b69d1028027da1bceb06b41103e7aa) --- source4/pidl/tests/ndr_tagtype.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source4/pidl/tests') diff --git a/source4/pidl/tests/ndr_tagtype.pl b/source4/pidl/tests/ndr_tagtype.pl index f8250a90ef..38daa02ab4 100755 --- a/source4/pidl/tests/ndr_tagtype.pl +++ b/source4/pidl/tests/ndr_tagtype.pl @@ -30,13 +30,13 @@ test_samba4_ndr('struct-notypedef-used', '[public] struct bla { uint8 x; }; [public] void myfn([in] struct bla r); ', ' struct ndr_push *ndr = ndr_push_init_ctx(NULL); - struct bla r; + struct myfn fn; uint8_t expected[] = { 0x0D }; DATA_BLOB expected_blob = { expected, 1 }; DATA_BLOB result_blob; - r.x = 13; + fn.in.r.x = 13; - if (NT_STATUS_IS_ERR(ndr_push_myfn(ndr, NDR_IN, &r))) + if (NT_STATUS_IS_ERR(ndr_push_myfn(ndr, NDR_IN, &fn))) return 1; result_blob = ndr_push_blob(ndr); @@ -47,16 +47,16 @@ test_samba4_ndr('struct-notypedef-used', '[public] struct bla { uint8 x; }; test_samba4_ndr('struct-notypedef-embedded', 'struct bla { uint8 x; }; - [public] struct myfn { struct bla r; }; ', + [public] struct myst { struct bla r; }; ', ' struct ndr_push *ndr = ndr_push_init_ctx(NULL); - struct bla r; + struct myst st; uint8_t expected[] = { 0x0D }; DATA_BLOB expected_blob = { expected, 1 }; DATA_BLOB result_blob; - r.x = 13; + st.r.x = 13; - if (NT_STATUS_IS_ERR(ndr_push_STRUCT_myfn(ndr, NDR_IN, &r))) + if (NT_STATUS_IS_ERR(ndr_push_STRUCT_myst(ndr, NDR_IN, &st))) return 1; result_blob = ndr_push_blob(ndr); -- cgit