From 85e91438b119f91cc0eb7da0992fadd5d2e47332 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 24 Mar 2006 11:42:03 +0000 Subject: r14688: More work on represent_as(): output the right function calls, fix test. (This used to be commit 7bc72277b37f9d89f6a078e85c14d560fd33a3bb) --- source4/pidl/tests/ndr_represent.pl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source4/pidl/tests/ndr_represent.pl') diff --git a/source4/pidl/tests/ndr_represent.pl b/source4/pidl/tests/ndr_represent.pl index 772df2b94e..e72fcf6a50 100644 --- a/source4/pidl/tests/ndr_represent.pl +++ b/source4/pidl/tests/ndr_represent.pl @@ -29,7 +29,16 @@ test_samba4_ndr('represent_as-simple', return 2; ', ' -NTSTATUS ndr_uint8_to_foo(uint8 from, foo *to) +#include +typedef int foo; + +NTSTATUS ndr_uint8_to_foo(uint8_t from, foo *to) +{ + *to = from; + return NT_STATUS_OK; +} + +NTSTATUS ndr_foo_to_uint8(foo from, uint8_t *to) { *to = from; return NT_STATUS_OK; -- cgit