summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-07-04 02:25:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:09 -0500
commitd92b30fe3851905cf38e43f44cf5e62b9a111de0 (patch)
treecf5150bc2b72d69e7753325282ef932dfac8216b /source4/librpc/ndr
parent74942e1a11501dd75085b29f16ac66cd2185fe2b (diff)
downloadsamba-d92b30fe3851905cf38e43f44cf5e62b9a111de0.tar.gz
samba-d92b30fe3851905cf38e43f44cf5e62b9a111de0.tar.bz2
samba-d92b30fe3851905cf38e43f44cf5e62b9a111de0.zip
r8108: Fix indentation, and remove a discard_const_p() that we don't need any more.
Perhaps like minimal_includes.pl, we should have a way to find these automaticly. Hmm... Andrew Bartlett (This used to be commit d13b9f548e9d3696505178476d2615835cae8fe2)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index 6694209c68..9fd54dd092 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -325,9 +325,9 @@ NTSTATUS ndr_push_error(struct ndr_push *ndr, enum ndr_err_code err, const char
we use magic in pidl to make them easier to cope with
*/
NTSTATUS ndr_pull_subcontext_header(struct ndr_pull *ndr,
- size_t header_size,
- ssize_t size_is,
- struct ndr_pull *ndr2)
+ size_t header_size,
+ ssize_t size_is,
+ struct ndr_pull *ndr2)
{
ndr2->flags = ndr->flags;
@@ -704,7 +704,7 @@ size_t ndr_size_union(const void *p, int flags, uint32_t level, ndr_push_flags_f
if (!ndr) return 0;
ndr->flags |= flags | LIBNDR_FLAG_NO_NDR_SIZE;
ndr_push_set_switch_value(ndr, p, level);
- status = push(ndr, NDR_SCALARS|NDR_BUFFERS, discard_const(p));
+ status = push(ndr, NDR_SCALARS|NDR_BUFFERS, p);
if (!NT_STATUS_IS_OK(status)) {
return 0;
}