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