Wireshark-commits: [Wireshark-commits] master-1.10 2860b1a: Use g_array_index() to get at elements

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 26 May 2015 21:13:10 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=2860b1ac3a50d3f8ce0fc32f75b61ea025dbba47
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.10
Repository: wireshark

Commits:

2860b1a by Guy Harris (guy@xxxxxxxxxxxx):

    Use g_array_index() to get at elements of the encapsulation table array;
    this avoids some compiler warnings from clang about alignment.
    
    Change-Id: I69514c3be2587964d696b5cbb287fd924efe5318
    Reviewed-on: https://code.wireshark.org/review/8658
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  dcdf46a   Squelch a bunch of shorten-64-to-32 warnings by parsing all of our numeric values using strtoul and casting it the result to a guint32. Hopefully no user or session IDs are negative or greater than 32 bits.
    adds  2860b1a   Use g_array_index() to get at elements of the encapsulation table array; this avoids some compiler warnings from clang about alignment.


Summary of changes:
 wiretap/wtap.c |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)