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