summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-23 07:14:17 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-23 07:14:17 +0000
commit1b9452ffc5d21bcc621806273a1ab0366843451f (patch)
tree49c397ff24a839b19fd52ea3ea46c903038fac52 /source4/librpc
parent03eda9064143093d97b055b1c2a4e5110b139426 (diff)
downloadsamba-1b9452ffc5d21bcc621806273a1ab0366843451f.tar.gz
samba-1b9452ffc5d21bcc621806273a1ab0366843451f.tar.bz2
samba-1b9452ffc5d21bcc621806273a1ab0366843451f.zip
fixed the handling of value() attributes on scalars in IDL that
reference other elements of the same structure (This used to be commit d8d17be290730670bad0fea91188d394160cb879)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/dcerpc.idl10
-rw-r--r--source4/librpc/idl/samr.idl2
2 files changed, 6 insertions, 6 deletions
diff --git a/source4/librpc/idl/dcerpc.idl b/source4/librpc/idl/dcerpc.idl
index 14518d6c3d..f24e6ffc45 100644
--- a/source4/librpc/idl/dcerpc.idl
+++ b/source4/librpc/idl/dcerpc.idl
@@ -84,17 +84,17 @@ interface dcerpc
} dcerpc_pkt_type;
typedef [nodiscriminant] union {
- [case(DCERPC_PKT_REQUEST)] dcerpc_request request;
+ [case(DCERPC_PKT_REQUEST)] dcerpc_request request;
[case(DCERPC_PKT_RESPONSE)] dcerpc_response response;
- [case(DCERPC_PKT_BIND)] dcerpc_bind bind;
+ [case(DCERPC_PKT_BIND)] dcerpc_bind bind;
[case(DCERPC_PKT_BIND_ACK)] dcerpc_bind_ack bind_ack;
- [case(DCERPC_PKT_FAULT)] dcerpc_fault fault;
+ [case(DCERPC_PKT_FAULT)] dcerpc_fault fault;
} dcerpc_payload;
/* pfc_flags values */
- const uint8 DCERPC_PFC_FLAG_FIRST = 0x01;
- const uint8 DCERPC_PFC_FLAG_LAST = 0x02;
+ const uint8 DCERPC_PFC_FLAG_FIRST = 0x01;
+ const uint8 DCERPC_PFC_FLAG_LAST = 0x02;
const uint8 DCERPC_PFC_FLAG_NOCALL = 0x20;
typedef [public] struct {
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index eb1d126227..43db18a298 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -62,7 +62,7 @@
/* Function: 0x05 */
typedef struct {
[value(2*strlen_m(r->name))] uint16 name_len;
- [value(2*strlen_m(r->name))] uint16 name_size;
+ [value(r->name_len)] uint16 name_size;
unistr_noterm *name;
} samr_Name;