From: Günther Deschner Date: Tue, 19 Mar 2024 21:00:11 +0000 (+0100) Subject: pidl: add "return ENOTSUP" for int return type in s3 template X-Git-Tag: tdb-1.4.11~1396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f1a80147d8d95c5f59f2e8c2a18bfaee29cfcf5;p=thirdparty%2Fsamba.git pidl: add "return ENOTSUP" for int return type in s3 template Guenther Signed-off-by: Guenther Deschner Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Mar 21 00:45:29 UTC 2024 on atb-devel-224 --- diff --git a/pidl/lib/Parse/Pidl/Samba3/Template.pm b/pidl/lib/Parse/Pidl/Samba3/Template.pm index c8fcf089541..53e6a320e7c 100644 --- a/pidl/lib/Parse/Pidl/Samba3/Template.pm +++ b/pidl/lib/Parse/Pidl/Samba3/Template.pm @@ -74,6 +74,8 @@ $pad"."struct $fname *r) $res .= "\treturn WERR_NOT_SUPPORTED;\n"; } elsif ($d->{RETURN_TYPE} eq "HRESULT") { $res .= "\treturn HRES_ERROR_NOT_SUPPORTED;\n"; + } elsif ($d->{RETURN_TYPE} eq "int") { + $res .= "\treturn ENOTSUP;\n"; } $res .= "}