]> granicus.if.org Git - strace/commit
Change signatures of print_*time* functions to match print_timex
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 4 May 2019 23:15:52 +0000 (23:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 4 May 2019 23:15:52 +0000 (23:15 +0000)
commited26c4cdc889b82eca1c2b61f8d46d131635f6a0
tree8825dfd6350fc068b76bef4dd1786ecf077d30cb
parent867dd7be21803a4599867e37cced135c09302597
Change signatures of print_*time* functions to match print_timex

Make all these functions that print time by address return -1 when
umove_or_printaddr() returns non-zero.

This helps to use these functions as parameters to other functions.

* defs.h [ALPHA] (print_timeval32, print_timeval32_utimes,
print_itimerval32): Change return type to int.
* desc.c (decode_select): Change return type of print_tv_ts to int.
* print_timespec.c (print_timespec, print_timespec_utime_pair,
print_itimerspec): Change return type to int, return -1 when
umove_or_printaddr() returns non-zero.
* print_timeval.c (print_timeval, print_timeval_utimes,
print_itimerval): Likewise.
[ALPHA] (print_timeval32, print_timeval32_utimes, print_itimerval32):
Likewise.
defs.h
desc.c
print_timespec.c
print_timeval.c