linux-user: Modify 'target_to_host/host_to_target_itimerspec()'
commit2c86c90fe802502893e1f5a2462f58a0b05e9274
authorFilip Bozuta <Filip.Bozuta@syrmia.com>
Wed, 22 Jul 2020 15:34:20 +0000 (22 17:34 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 23 Aug 2020 14:57:58 +0000 (23 16:57 +0200)
tree091b4416c22888633c6763507fbb87797933d262
parent4eaa960dbcd3fbd51047eacbbc20a9882a0eca63
linux-user: Modify 'target_to_host/host_to_target_itimerspec()'

Functions 'target_to_host_itimerspec()' and 'host_to_target_itimerspec()'
are used to convert values of type 'struct itimerspec' between target and
host. This type has 'struct timespec' as its fields. That is the reason
why this patch introduces a little modification to the converting functions
to be implemented using already existing functions that convert 'struct timespec':
'target_to_host_timespec()' and 'host_to_target_timespec()'. This makes the
code of 'target_to_host_itimerspec()' and 'host_to_target_itimerspec()' more
clean and readable.

Signed-off-by: Filip Bozuta <Filip.Bozuta@syrmia.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200722153421.295411-2-Filip.Bozuta@syrmia.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c