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