706194
From ff54fe2fdfbab11e08a138cdfd0da900ee865e3d Mon Sep 17 00:00:00 2001
706194
From: Rafael Guterres Jeffman <rjeffman@redhat.com>
706194
Date: Fri, 17 Jun 2022 11:22:32 -0300
706194
Subject: [PATCH] ipa-otpd: Fix build on older versions of gcc.
706194
706194
Older versions of gcc do not support unnamed parameters.
706194
706194
This patch fixes the build on older gcc by applying the same idiom for
706194
unsued parameters as used by other functions in the same module.
706194
706194
Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
706194
---
706194
 daemons/ipa-otpd/oauth2.c | 3 ++-
706194
 1 file changed, 2 insertions(+), 1 deletion(-)
706194
706194
diff --git a/daemons/ipa-otpd/oauth2.c b/daemons/ipa-otpd/oauth2.c
706194
index df1ffd50d..11d5c135f 100644
706194
--- a/daemons/ipa-otpd/oauth2.c
706194
+++ b/daemons/ipa-otpd/oauth2.c
706194
@@ -319,8 +319,9 @@ static int check_access_token_reply(struct child_ctx *child_ctx,
706194
     return ret;
706194
 }
706194
 
706194
-static void oauth2_on_child_readable(verto_ctx *, verto_ev *ev)
706194
+static void oauth2_on_child_readable(verto_ctx *vctx, verto_ev *ev)
706194
 {
706194
+    (void)vctx; /* Unused */
706194
     static char buf[10240];
706194
     ssize_t io = 0;
706194
     struct child_ctx *child_ctx = NULL;
706194
-- 
706194
2.36.1
706194