summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-16 05:07:07 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-16 05:07:07 +0000
commit4d48e84ffa6ec206f4bd6872e1f642f5cebc37f3 (patch)
treed741386145e6a55eb1a6bcc367165830bd53367a /source4/librpc/idl
parentb5fccdd9ee4f18ff77e488c0beb85410b554ac78 (diff)
downloadsamba-4d48e84ffa6ec206f4bd6872e1f642f5cebc37f3.tar.gz
samba-4d48e84ffa6ec206f4bd6872e1f642f5cebc37f3.tar.bz2
samba-4d48e84ffa6ec206f4bd6872e1f642f5cebc37f3.zip
slightly more efficient strlen setting in lsa and samr strings (calls
strlen_m() once, not twice) (This used to be commit 468c2dc632703e6956428fb5f1da4044709b8f6f)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/lsa.idl2
-rw-r--r--source4/librpc/idl/samr.idl2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl
index 204466c784..7209602728 100644
--- a/source4/librpc/idl/lsa.idl
+++ b/source4/librpc/idl/lsa.idl
@@ -26,7 +26,7 @@
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;
} lsa_Name;
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index ec782acd01..e9aea5dbfe 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -39,7 +39,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;