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