summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/idl/idl_types.h3
-rw-r--r--source4/librpc/idl/spoolss.idl2
-rw-r--r--source4/librpc/ndr/libndr.h4
-rw-r--r--source4/librpc/ndr/ndr.c13
4 files changed, 3 insertions, 19 deletions
diff --git a/source4/librpc/idl/idl_types.h b/source4/librpc/idl/idl_types.h
index 024b5632d3..21f4beb8e7 100644
--- a/source4/librpc/idl/idl_types.h
+++ b/source4/librpc/idl/idl_types.h
@@ -110,7 +110,4 @@
*/
#define NDR_PAHEX LIBNDR_PRINT_ARRAY_HEX
-/* this enables spoolss style relative ptrs */
-#define RELATIVE_CURRENT LIBNDR_FLAG_RELATIVE_CURRENT
-
#define bool8 uint8
diff --git a/source4/librpc/idl/spoolss.idl b/source4/librpc/idl/spoolss.idl
index f3c7e553cc..4189c7b161 100644
--- a/source4/librpc/idl/spoolss.idl
+++ b/source4/librpc/idl/spoolss.idl
@@ -791,7 +791,7 @@
[out] uint32 count
);
- typedef [flag(RELATIVE_CURRENT)] struct {
+ typedef struct {
[relative] nstring *port_name;
} spoolss_PortInfo1;
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;
}