Wireshark-commits: [Wireshark-commits] master f3e5618: sharkd: cast string to be encoded to unsigne

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 28 Sep 2018 04:34:29 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=f3e5618eb0a483e060742bd5cadcb7deefd620c0
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

f3e5618 by Jakub Zawadzki (darkjames-ws@xxxxxxxxxxxx):

    sharkd: cast string to be encoded to unsigned char *.
    
    It should fix warning reported by Stig:
    [...]/wireshark/sharkd_session.c:125:20: warning: array subscript is of type 'char' [-Wchar-subscripts]
                            fputs(json_cntrl[str[i]], stdout);
                                            ^~~~~~~
    
    Change-Id: I9352174223644394ba2bf76f10ff3bf6b6abcad5
    Reviewed-on: https://code.wireshark.org/review/29877
    Petri-Dish: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  7458f40   Diameter: add a bunch more AVPs from RFC 5777.
     add  f3e5618   sharkd: cast string to be encoded to unsigned char *.


Summary of changes:
 sharkd_session.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)