git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56719a5
)
pidl: add "return ENOTSUP" for int return type in s3 template
author
Günther Deschner
<gd@samba.org>
Tue, 19 Mar 2024 21:00:11 +0000
(22:00 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 21 Mar 2024 00:45:29 +0000
(
00:45
+0000)
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Mar 21 00:45:29 UTC 2024 on atb-devel-224
pidl/lib/Parse/Pidl/Samba3/Template.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba3/Template.pm
b/pidl/lib/Parse/Pidl/Samba3/Template.pm
index c8fcf089541c393a1a3daa8761674a414d89a351..53e6a320e7c759b8a61a1a187cc0b9c6669e5098 100644
(file)
--- 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 .= "}