aboutsummaryrefslogtreecommitdiff
path: root/linux-user/target_flat.h
diff options
context:
space:
mode:
authorFilip Bozuta <Filip.Bozuta@syrmia.com>2020-07-22 17:34:20 +0200
committerLaurent Vivier <laurent@vivier.eu>2020-08-23 16:57:58 +0200
commit2c86c90fe802502893e1f5a2462f58a0b05e9274 (patch)
tree091b4416c22888633c6763507fbb87797933d262 /linux-user/target_flat.h
parent4eaa960dbcd3fbd51047eacbbc20a9882a0eca63 (diff)
downloadqemu-2c86c90fe802502893e1f5a2462f58a0b05e9274.zip
qemu-2c86c90fe802502893e1f5a2462f58a0b05e9274.tar.gz
qemu-2c86c90fe802502893e1f5a2462f58a0b05e9274.tar.bz2
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>
Diffstat (limited to 'linux-user/target_flat.h')
0 files changed, 0 insertions, 0 deletions