X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-ir%2Futils-internal.h;h=36cb29085510d566705e6420ca9a416738d3b8e1;hb=40f4ba76dd6f9508ca51b6220eaed57632281a07;hp=4c3f8c0392a1fbdfd2c904dc7227f419711b74ee;hpb=56e18c4ce186892c36d7f2cb5078087425e60134;p=babeltrace.git diff --git a/include/babeltrace/trace-ir/utils-internal.h b/include/babeltrace/trace-ir/utils-internal.h index 4c3f8c03..36cb2908 100644 --- a/include/babeltrace/trace-ir/utils-internal.h +++ b/include/babeltrace/trace-ir/utils-internal.h @@ -2,8 +2,6 @@ #define BABELTRACE_TRACE_IR_UTILS_INTERNAL_H /* - * Babeltrace - Internal Trace IR utilities - * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights @@ -24,7 +22,7 @@ */ #include -#include +#include #include #include @@ -55,8 +53,8 @@ uint64_t bt_util_ns_from_value(uint64_t frequency, uint64_t value_cycles) } static inline -int bt_util_ns_from_origin(struct bt_clock_class *clock_class, uint64_t value, - int64_t *ns_from_origin) +int bt_util_ns_from_origin(const struct bt_clock_class *clock_class, + uint64_t value, int64_t *ns_from_origin) { int ret = 0; uint64_t value_ns_unsigned;