Wireshark-commits: [Wireshark-commits] master 9f575c8: Use a common wtap_rec and Buffer for all pac

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 08 Apr 2019 00:55:58 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9f575c8dc9a04c1eb4634cf525815ff226a5e1bf
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

9f575c8 by Guy Harris (guy@xxxxxxxxxxxx):

    Use a common wtap_rec and Buffer for all packets.
    
    That way we don't do initialization, possible expansion of the buffer
    from its initial size, and cleanup for every packet.
    
    Change-Id: If967bd8f0cc65631b8b128b2c048d32ba54c8033
    Reviewed-on: https://code.wireshark.org/review/32774
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  ae3e671   proto.h: avoid warning about not really deprecated (Clang)
     add  9f575c8   Use a common wtap_rec and Buffer for all packets.


Summary of changes:
 ui/proto_hier_stats.c | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)