diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-11-20 11:07:50 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:45:47 +0100 |
commit | 8267a7a64bb9ff7d5a6594491eda6cc22a86701f (patch) | |
tree | d49971592868055a34f4b1f94877fcb9d68872bf /source4/pidl/lib | |
parent | 9532bced6c4da4063969bd55988674c26eb22e6a (diff) | |
download | samba-8267a7a64bb9ff7d5a6594491eda6cc22a86701f.tar.gz samba-8267a7a64bb9ff7d5a6594491eda6cc22a86701f.tar.bz2 samba-8267a7a64bb9ff7d5a6594491eda6cc22a86701f.zip |
r26049: pidl: don't use ndr_pull_save anymore
metze
(This used to be commit d361bb174131227c426a247ca0262930a714c37a)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 1a84ee4f0b..c9b48b017c 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -1095,8 +1095,8 @@ sub ParseElementPullLevel $self->indent; if ($l->{POINTER_TYPE} eq "relative") { - $self->pidl("struct ndr_pull_save _relative_save;"); - $self->pidl("ndr_pull_save(ndr, &_relative_save);"); + $self->pidl("uint32_t _relative_save_offset;"); + $self->pidl("_relative_save_offset = ndr->offset;"); $self->pidl("NDR_CHECK(ndr_pull_relative_ptr2(ndr, $var_name));"); } } @@ -1110,7 +1110,7 @@ sub ParseElementPullLevel if ($l->{POINTER_TYPE} ne "ref") { if ($l->{POINTER_TYPE} eq "relative") { - $self->pidl("ndr_pull_restore(ndr, &_relative_save);"); + $self->pidl("ndr->offset = _relative_save_offset;"); } $self->deindent; $self->pidl("}"); |