lttv: C99 compatibility fix
authorFlorian Weimer via lttng-dev <lttng-dev@lists.lttng.org>
Tue, 10 Jan 2023 10:54:22 +0000 (05:54 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 10 Jan 2023 19:22:33 +0000 (14:22 -0500)
While rebuilding Fedora with a C99 compiler, we noticed that we need
this patch to avoid a compilation error:

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttv/lttv/state.c

index 513c1bf3bb03ec7a1775975fc43cb030208236ed..a1a31df2cbe6be30671771223f384e2124f4d8bb 100644 (file)
@@ -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;
This page took 0.025118 seconds and 4 git commands to generate.