libsframe: avoid unnecessary type casts
authorIndu Bhagat <indu.bhagat@oracle.com>
Mon, 5 Jun 2023 21:16:02 +0000 (14:16 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 5 Jun 2023 21:17:15 +0000 (14:17 -0700)
commit1466e49f7de4642859f2bf5e31d9a22b845b7797
tree422f4ab05c86dbe68dcabd0fba275756a8c4e692
parent3c5e824b9cee93a987a77906240c509add260a0d
libsframe: avoid unnecessary type casts

Change the data type of some of the members of the sframe_decoder_ctx
and sframe_encoder_ctx data structures to use the applicable data types
explicitly. Current implementation in libsframe does type casts, which
seem unnecessary.

libsframe/
* libsframe/sframe-impl.h (struct sframe_decoder_ctx): Use
applicable data type explicitly.
(struct sframe_encoder_ctx): Likewise. Use same style of
comments consistently.
* libsframe/sframe.c (struct sf_fde_tbl): Define without
typedef.
(struct sf_fre_tbl): Likewise.
(sframe_decode): Remove unnecessary type casts.
(sframe_encoder_get_funcdesc_at_index): Likewise.
(sframe_encoder_add_fre): Likewise.
(sframe_encoder_add_funcdesc): Likewise.
(sframe_sort_funcdesc): Likewise.
(sframe_encoder_write_sframe): Likewise.
libsframe/sframe-impl.h
libsframe/sframe.c