[prev in list] [next in list] [prev in thread] [next in thread]
List: samba-cvs
Subject: svn commit: samba r25766 - in branches/SAMBA_4_0/source/pidl/tests:
From: metze () samba ! org
Date: 2007-10-31 16:27:22
Message-ID: 20071031162722.4C0B1162B00 () lists ! samba ! org
[Download RAW message or body]
Author: metze
Date: 2007-10-31 16:27:21 +0000 (Wed, 31 Oct 2007)
New Revision: 25766
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25766
Log:
pidl: fix bugs in ndr_tagtype tests found by compiler warnings
metze
Modified:
branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
Changeset:
Modified: branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
===================================================================
--- branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl 2007-10-31 16:25:44 UTC (rev 25765)
+++ branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl 2007-10-31 16:27:21 UTC (rev 25766)
@@ -30,13 +30,13 @@
[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-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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic