From d92b30fe3851905cf38e43f44cf5e62b9a111de0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 4 Jul 2005 02:25:33 +0000 Subject: 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) --- source4/librpc/ndr/ndr.c | 8 ++++---- 1 file 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; } -- cgit