Wireshark-commits: [Wireshark-commits] master-2.4 3b7ce56: clean up tvb_get_guintvar() a bit more

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 03 Jun 2018 17:19:20 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=3b7ce565bc1a8f6cf79dc8ef08d494b301919eef
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.4
Repository: wireshark

Commits:

3b7ce56 by Martin Kaiser (wireshark@xxxxxxxxx):

    clean up tvb_get_guintvar() a bit more
    
    Wrap long lines.
    
    Use a do-while loop. We know up-front that we'll go into the loop at
    least once. Remove the cont variable, use the exit condition directly.
    
    Set *octetCount = 0 if we return 0 because of an error. In that case, we
    did not process any bytes and should inform the caller about this.
    
    Change-Id: I222270939e42e0096b6f5a25b197bd4bae12235e
    Reviewed-on: https://code.wireshark.org/review/26245
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit 4630b4fcf835b91d043ad12818d666c7321e28a4)
    Reviewed-on: https://code.wireshark.org/review/27991
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  b2c1c1f   wap: include stdio.h
    adds  3b7ce56   clean up tvb_get_guintvar() a bit more


Summary of changes:
 epan/dissectors/packet-wap.c | 47 ++++++++++++++++++++++++--------------------
 1 file changed, 26 insertions(+), 21 deletions(-)