summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/dfs.idl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-05 18:34:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:57 -0500
commit631aa1f0efa75924c4d8ba639de80527fb8da7b5 (patch)
tree6b6e0f16c6f5d1ec96cff1344973808c86311898 /source4/librpc/idl/dfs.idl
parentdf036e08294ec98a2c7049f7f2fe03de1fd2ae44 (diff)
downloadsamba-631aa1f0efa75924c4d8ba639de80527fb8da7b5.tar.gz
samba-631aa1f0efa75924c4d8ba639de80527fb8da7b5.tar.bz2
samba-631aa1f0efa75924c4d8ba639de80527fb8da7b5.zip
r5661: Be a little stricter on syntax regarding arrays. A pointer to an
array can now only be : type *name[]; rather then : type *name; which was supported in the past. Warnings will be given when the first syntax is used. Reasons for this change in behaviour include improved readability and the fact that the second format makes dealing with multiple levels of pointers harder. (This used to be commit a416de5825c540fd3741731c4be05e9a659a6fdb)
Diffstat (limited to 'source4/librpc/idl/dfs.idl')
-rw-r--r--source4/librpc/idl/dfs.idl16
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/librpc/idl/dfs.idl b/source4/librpc/idl/dfs.idl
index 34bb686ba5..d418b8b546 100644
--- a/source4/librpc/idl/dfs.idl
+++ b/source4/librpc/idl/dfs.idl
@@ -64,7 +64,7 @@
unistr *comment;
uint32 state;
uint32 num_stores;
- [size_is(num_stores)] dfs_StorageInfo *stores;
+ [size_is(num_stores)] dfs_StorageInfo *stores[];
} dfs_Info3;
typedef struct {
@@ -74,7 +74,7 @@
uint32 timeout;
GUID guid;
uint32 num_stores;
- [size_is(num_stores)] dfs_StorageInfo *stores;
+ [size_is(num_stores)] dfs_StorageInfo *stores[];
} dfs_Info4;
typedef struct {
@@ -122,32 +122,32 @@
typedef struct {
uint32 count;
- [size_is(count)] dfs_Info1 *s;
+ [size_is(count)] dfs_Info1 *s[];
} dfs_EnumArray1;
typedef struct {
uint32 count;
- [size_is(count)] dfs_Info2 *s;
+ [size_is(count)] dfs_Info2 *s[];
} dfs_EnumArray2;
typedef struct {
uint32 count;
- [size_is(count)] dfs_Info3 *s;
+ [size_is(count)] dfs_Info3 *s[];
} dfs_EnumArray3;
typedef struct {
uint32 count;
- [size_is(count)] dfs_Info4 *s;
+ [size_is(count)] dfs_Info4 *s[];
} dfs_EnumArray4;
typedef struct {
uint32 count;
- [size_is(count)] dfs_Info200 *s;
+ [size_is(count)] dfs_Info200 *s[];
} dfs_EnumArray200;
typedef struct {
uint32 count;
- [size_is(count)] dfs_Info300 *s;
+ [size_is(count)] dfs_Info300 *s[];
} dfs_EnumArray300;