diff options
author | Günther Deschner <gd@samba.org> | 2009-12-01 00:24:16 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-12-01 00:36:50 +0100 |
commit | b852a3494aa3af3d69175f68669609b23fefc1bb (patch) | |
tree | 323a10d54612ebb8b0020aca5007a7740c28e7f2 /librpc/ndr | |
parent | 753b9c6d566fafee9724a84fbd91316767c1c7a2 (diff) | |
download | samba-b852a3494aa3af3d69175f68669609b23fefc1bb.tar.gz samba-b852a3494aa3af3d69175f68669609b23fefc1bb.tar.bz2 samba-b852a3494aa3af3d69175f68669609b23fefc1bb.zip |
drsuapi: fix build warning of NDR size calculation of drsuapi_DsReplicaObjectIdentifier3Binary.
The generated size actually does not include the size of the binary itself.
Guenther
Diffstat (limited to 'librpc/ndr')
-rw-r--r-- | librpc/ndr/ndr_drsuapi.c | 6 | ||||
-rw-r--r-- | librpc/ndr/ndr_drsuapi.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_drsuapi.c b/librpc/ndr/ndr_drsuapi.c index 15f2f842bd..17f2b7e2ed 100644 --- a/librpc/ndr/ndr_drsuapi.c +++ b/librpc/ndr/ndr_drsuapi.c @@ -273,3 +273,9 @@ enum ndr_err_code ndr_push_drsuapi_DsGetNCChangesXPRESSCtr6(struct ndr_push *ndr } return NDR_ERR_SUCCESS; } + +_PUBLIC_ size_t ndr_size_drsuapi_DsReplicaObjectIdentifier3Binary_without_Binary(const struct drsuapi_DsReplicaObjectIdentifier3Binary *r, struct smb_iconv_convenience *ic, int flags) +{ + return ndr_size_struct((const struct drsuapi_DsReplicaObjectIdentifier3 *)r, flags, (ndr_push_flags_fn_t)ndr_push_drsuapi_DsReplicaObjectIdentifier3, ic); +} + diff --git a/librpc/ndr/ndr_drsuapi.h b/librpc/ndr/ndr_drsuapi.h index 179879a3b7..43c6c18bd7 100644 --- a/librpc/ndr/ndr_drsuapi.h +++ b/librpc/ndr/ndr_drsuapi.h @@ -28,5 +28,7 @@ void ndr_print_drsuapi_DsReplicaObjectListItem(struct ndr_print *ndr, const char void ndr_print_drsuapi_DsReplicaObjectListItemEx(struct ndr_print *ndr, const char *name, const struct drsuapi_DsReplicaObjectListItemEx *r); +size_t ndr_size_drsuapi_DsReplicaObjectIdentifier3Binary_without_Binary(const struct drsuapi_DsReplicaObjectIdentifier3Binary *r, struct smb_iconv_convenience *ic, int flags); + #endif /* _LIBRPC_NDR_NDR_DRSUAPI_H */ |