All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Weimer via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Subject: [lttng-dev] [PATCH] lttv: C99 compatibility fix
Date: Tue, 10 Jan 2023 11:54:22 +0100	[thread overview]
Message-ID: <87h6wyhd7l.fsf@oldenburg.str.redhat.com> (raw)

While rebuilding Fedora with a C99 compiler, we noticed that we need
this patch to avoid a compilation error:

diff --git a/lttv/lttv/state.c b/lttv/lttv/state.c
index 513c1bf3bb03ec7a..a1a31df2cbe6be30 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;

Related to:

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

Thanks,
Florian

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

             reply	other threads:[~2023-01-10 11:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-10 10:54 Florian Weimer via lttng-dev [this message]
2023-01-10 19:46 ` [lttng-dev] lttv: Document project status as unmaintained Mathieu Desnoyers via lttng-dev
2023-01-11 11:01   ` Florian Weimer via lttng-dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6wyhd7l.fsf@oldenburg.str.redhat.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=fweimer@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.