pidl: add "return ENOTSUP" for int return type in s3 template
authorGünther Deschner <gd@samba.org>
Tue, 19 Mar 2024 21:00:11 +0000 (22:00 +0100)
committerAndrew 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

index c8fcf089541c393a1a3daa8761674a414d89a351..53e6a320e7c759b8a61a1a187cc0b9c6669e5098 100644 (file)
@@ -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 .= "}