Wireshark mailing list archives

Why are ett[] arrays static?


From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Fri, 19 Oct 2018 10:51:48 -0400

Is it just me or is there no reason for ett[] arrays:

    /* Setup protocol subtree array */
    static gint *ett[] = {
        &ett_PROTOABBREV

to be static?

It seems to me that making it static is just wasting space (keeping the
array around forever)?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: