diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-31 16:27:21 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:50 +0100 |
commit | 0bf387e0f98ee50e90c573f9f9d30074bdde3660 (patch) | |
tree | 1bc8c7c6819abf41e0a64c0e244037467a143a86 /source4 | |
parent | 616a64dd395d4a1062317e7ac9e8b812c32b0315 (diff) | |
download | samba-0bf387e0f98ee50e90c573f9f9d30074bdde3660.tar.gz samba-0bf387e0f98ee50e90c573f9f9d30074bdde3660.tar.bz2 samba-0bf387e0f98ee50e90c573f9f9d30074bdde3660.zip |
r25766: pidl: fix bugs in ndr_tagtype tests found by compiler warnings
metze
(This used to be commit 34af31cfb3b69d1028027da1bceb06b41103e7aa)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/pidl/tests/ndr_tagtype.pl | 14 |
1 files changed, 7 insertions, 7 deletions
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); |