From: Florian Weimer via lttng-dev Date: Tue, 10 Jan 2023 10:54:22 +0000 (-0500) Subject: lttv: C99 compatibility fix X-Git-Url: https://git.lttng.org/?p=lttv.git;a=commitdiff_plain;h=6b9d59fe4cc1dc943501ab6ede93856b2f06c3ce lttv: C99 compatibility fix While rebuilding Fedora with a C99 compiler, we noticed that we need this patch to avoid a compilation error: Related to: Signed-off-by: Mathieu Desnoyers --- diff --git a/lttv/lttv/state.c b/lttv/lttv/state.c index 513c1bf3..a1a31df2 100644 --- a/lttv/lttv/state.c +++ b/lttv/lttv/state.c @@ -271,7 +271,7 @@ gboolean rettrue(gpointer key, gpointer value, gpointer user_data) return TRUE; } -static guint check_expand(nb, id) +static guint check_expand(int nb, int id) { if(likely(nb > id)) return nb;