]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pidl: Wireshark: Remove init of proto variables
authorJohn Thacker <johnthacker@gmail.com>
Wed, 3 Jul 2024 11:58:04 +0000 (07:58 -0400)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jul 2024 09:59:32 +0000 (09:59 +0000)
Pick up change from Wireshark:

    commit 10b046cbdd110dbae8f4cab048e5954bf6955402
    Author: John Thacker <johnthacker@gmail.com>
    Date:   Sat Jun 22 20:31:40 2024 -0400

        pidl: Remove init of proto variables

        Remove initialization of proto variables from pidl generated dissectors
        and regenerate.
        Follow up to 2a9bc63325c99653c5da873c273430add3b5e9dd

Signed-off-by: John Thacker <johnthacker@gmail.com>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index 1f67b9bda0e1fd2b70174a316a79cb1aa8395cf5..fef98db8abdce7412cd2b40fb11aa59fdb285576 100644 (file)
@@ -1009,7 +1009,7 @@ sub ProcessInterface($$)
        $self->pidl_hdr("#define $define");
        $self->pidl_hdr("");
 
-       $self->pidl_def("static int proto_dcerpc_$x->{NAME} = -1;");
+       $self->pidl_def("static int proto_dcerpc_$x->{NAME};");
        $self->register_ett("ett_dcerpc_$x->{NAME}");
        $self->register_hf_field("hf_$x->{NAME}_opnum", "Operation", "$x->{NAME}.opnum", "FT_UINT16", "BASE_DEC", "NULL", 0, "");