ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-commits: [Wireshark-commits] master 8c1a61e: Bluetooth: ATT: Fix cast-warnings

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 14 Apr 2018 20:12:18 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8c1a61e7b198b022aae37e466f420a7c66110a86
Submitter: Michal Labedzki (michal.labedzki@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

8c1a61e by Michał Łabędzki (michal.labedzki@xxxxxxxxxxxxx):

    Bluetooth: ATT: Fix cast-warnings
    
    1. Use explicit cast from gint16 to gint then to gdouble
       - I can understand my compiler - implicit cast is not explicit cast
    2. Fix const cast by remove "const" from one field but add it whenever
       possible in other places
    
    Change-Id: Iab7401f972c40bca2df58f91b89e29cf2d7cf11b
    Reviewed-on: https://code.wireshark.org/review/26917
    Petri-Dish: Michal Labedzki <michal.labedzki@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Michal Labedzki <michal.labedzki@xxxxxxxxxxxxx>
    

Actions performed:

    from  89076e6   packet-pcep.c: opposite inner 'if' condition leads to a dead code block
    adds  8c1a61e   Bluetooth: ATT: Fix cast-warnings


Summary of changes:
 epan/dissectors/packet-btatt.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)