diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2023-04-19 14:12:29 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2023-04-19 14:38:18 -0700 |
commit | 3cae258044e8d45895ef9b0cce5d8fc7b9c3dd1d (patch) | |
tree | 86ea573dbc3cba27b7c310b90624e1b7dea2d5a9 /libsframe | |
parent | cb45766e48c64e89296dc119431db00a00d3ede3 (diff) | |
download | gdb-3cae258044e8d45895ef9b0cce5d8fc7b9c3dd1d.zip gdb-3cae258044e8d45895ef9b0cce5d8fc7b9c3dd1d.tar.gz gdb-3cae258044e8d45895ef9b0cce5d8fc7b9c3dd1d.tar.bz2 |
libsframe: minor formatting fixes in sframe_encoder_write_fre
libsframe/
* sframe.c (sframe_encoder_write_fre): Formatting fixes for
readability.
Diffstat (limited to 'libsframe')
-rw-r--r-- | libsframe/sframe.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libsframe/sframe.c b/libsframe/sframe.c index 0b47e26..d656624 100644 --- a/libsframe/sframe.c +++ b/libsframe/sframe.c @@ -1552,7 +1552,7 @@ static int sframe_encoder_write_fre (char *contents, sframe_frame_row_entry *frep, unsigned int fre_type, size_t *esz) { - size_t fre_size; + size_t fre_sz; size_t fre_start_addr_sz; size_t fre_stack_offsets_sz; int err = 0; @@ -1572,23 +1572,19 @@ sframe_encoder_write_fre (char *contents, sframe_frame_row_entry *frep, fre_type, fre_start_addr_sz); contents += fre_start_addr_sz; - memcpy (contents, - &frep->fre_info, - sizeof (frep->fre_info)); + memcpy (contents, &frep->fre_info, sizeof (frep->fre_info)); contents += sizeof (frep->fre_info); - memcpy (contents, - frep->fre_offsets, - fre_stack_offsets_sz); + memcpy (contents, frep->fre_offsets, fre_stack_offsets_sz); contents+= fre_stack_offsets_sz; - fre_size = sframe_fre_entry_size (frep, fre_type); + fre_sz = sframe_fre_entry_size (frep, fre_type); /* Sanity checking. */ sframe_assert ((fre_start_addr_sz - + sizeof (frep->fre_info) - + fre_stack_offsets_sz) == fre_size); + + sizeof (frep->fre_info) + + fre_stack_offsets_sz) == fre_sz); - *esz = fre_size; + *esz = fre_sz; return 0; } |