Commit d41fcd36 authored by Adam Wujek's avatar Adam Wujek

lib/time-arith: use RelativeDifference as parameter for relative_interval_to_string

Use RelativeDifference not TimeInterval as the parameter for
relative_interval_to_string
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent ea5704db
......@@ -422,7 +422,7 @@ extern int64_t interval_to_picos(TimeInterval interval);
extern int is_timestamps_incorrect(struct pp_instance *ppsi, int *err_count, int ts_mask);
extern char *time_to_string(struct pp_time *t);
extern char *interval_to_string(TimeInterval time);
extern char *relative_interval_to_string(TimeInterval time);
extern char *relative_interval_to_string(RelativeDifference time);
/*
* The state machine itself is an array of these structures.
......
......@@ -286,7 +286,7 @@ char *interval_to_string(TimeInterval time)
}
/* Convert RelativeInterval to string */
char *relative_interval_to_string(TimeInterval time) {
char *relative_interval_to_string(RelativeDifference time) {
int32_t nsecs=time >> REL_DIFF_FRACBITS;
uint64_t sub_yocto=0;
int64_t fraction;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment