aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSirshak Das <sirshak.das@arm.com>2018-05-29 21:13:21 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-30 09:18:18 +0000
commitb0861820b92ede0f2022151c275458eb1b702e6d (patch)
treee3966b58b9a1871c77725910188539258ce0df5e /src
parent6495c4b8a11f231f099ce96e4538e1f82ce51793 (diff)
Fix clang compilation on aarch64: sizeof operator error.
Fixes clang error: argument to 'sizeof' in 'memcpy' call is the same pointer type 'unformat_input_t *' (aka 'struct _unformat_input_t *') as the source; expected 'unformat_input_t' (aka 'struct _unformat_input_t') or an explicit length. Change-Id: If00303343b10fe1732e477549727a41445edf410 Signed-off-by: Sirshak Das <sirshak.das@arm.com> Reviewed-by: Brian Brooks <brian.brooks@arm.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/vat/api_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index df62e81d848..ca9ebec698e 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -23298,7 +23298,7 @@ script (vat_main_t * vam)
vam->current_file = s;
do_one_file (vam);
- clib_memcpy (&vam->input, &save_input, sizeof (vam->input));
+ clib_memcpy (&vam->input, &save_input, sizeof (save_input));
clib_memcpy (&vam->jump_buf, &save_jump_buf, sizeof (save_jump_buf));
vam->ifp = save_ifp;
vam->input_line_number = save_line_number;