r8108: Fix indentation, and remove a discard_const_p() that we don't need any more.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jul 2005 02:25:33 +0000 (02:25 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:09 +0000 (13:19 -0500)
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

index 6694209c68fde4f1482031df73e6480870ea7fc3..9fd54dd0928083521ef540dfd582fb8e3224a280 100644 (file)
@@ -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;
        }