diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-06-02 00:19:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:23 -0500 |
commit | 8618c6a906c7c04e4149a1223a6d58d9790aa74e (patch) | |
tree | 99b83b16a16e7307efac16d1222642356b5e2bd4 /source4/librpc/ndr | |
parent | 4536f0ef914d12f6400122b7ab20291ffee56de0 (diff) | |
download | samba-8618c6a906c7c04e4149a1223a6d58d9790aa74e.tar.gz samba-8618c6a906c7c04e4149a1223a6d58d9790aa74e.tar.bz2 samba-8618c6a906c7c04e4149a1223a6d58d9790aa74e.zip |
r7182: remove current support for RELATIVE_CURRENT, this will be replaced with a better aproach later
metze
(This used to be commit 9a4e9f68fbddaae3fc86e30d39b69fc76261c0ea)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r-- | source4/librpc/ndr/libndr.h | 4 | ||||
-rw-r--r-- | source4/librpc/ndr/ndr.c | 13 |
2 files changed, 2 insertions, 15 deletions
diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h index 892f3c27ca..e5d8b0e593 100644 --- a/source4/librpc/ndr/libndr.h +++ b/source4/librpc/ndr/libndr.h @@ -126,10 +126,6 @@ struct ndr_print { /* used to check if alignment padding is zero */ #define LIBNDR_FLAG_PAD_CHECK (1<<28) -/* used to indicate spoolss style relative pointers (relative to current - offset, not base) */ -#define LIBNDR_FLAG_RELATIVE_CURRENT (1<<29) - /* set if an object uuid will be present */ #define LIBNDR_FLAG_OBJECT_PRESENT (1<<30) diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index dfd21018d2..237b64d4eb 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -598,12 +598,7 @@ uint32_t ndr_print_get_switch_value(struct ndr_print *ndr, const void *p) */ NTSTATUS ndr_pull_relative_ptr1(struct ndr_pull *ndr, const void *p, uint32_t rel_offset) { - if (ndr->flags & LIBNDR_FLAG_RELATIVE_CURRENT) { - return ndr_token_store(ndr, &ndr->relative_list, p, - rel_offset + ndr->offset - 4); - } else { - return ndr_token_store(ndr, &ndr->relative_list, p, rel_offset); - } + return ndr_token_store(ndr, &ndr->relative_list, p, rel_offset); } /* @@ -645,11 +640,7 @@ NTSTATUS ndr_push_relative_ptr2(struct ndr_push *ndr, const void *p) NDR_CHECK(ndr_push_align(ndr, 4)); ndr_push_save(ndr, &save); NDR_CHECK(ndr_token_retrieve(&ndr->relative_list, p, &ndr->offset)); - if (ndr->flags & LIBNDR_FLAG_RELATIVE_CURRENT) { - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, save.offset - ndr->offset)); - } else { - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, save.offset)); - } + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, save.offset)); ndr_push_restore(ndr, &save); return NT_STATUS_OK; } |