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