aboutsummaryrefslogtreecommitdiff
path: root/package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch
blob: b9e48841c010c839092c0a10c51bb99544768c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From a46b3f48d27f6a229627ef731fc23e3971056caa Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sat, 25 Jan 2020 10:51:36 +0100
Subject: [PATCH] Fix unused parameters with musl

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Retrieved from:
https://github.com/kravietz/pam_tacplus/commit/a46b3f48d27f6a229627ef731fc23e3971056caa]
---
 support.c | 1 +
 tacc.c    | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/support.c b/support.c
index 6e3fe45..76a5102 100644
--- a/support.c
+++ b/support.c
@@ -116,6 +116,7 @@ int converse(pam_handle_t *pamh, int nargs, const struct pam_message *message,
 int tacacs_get_password(pam_handle_t *pamh, int flags __Unused,
                         int ctrl, char **password) {
 
+    (void) flags;
     const void *pam_pass;
     char *pass = NULL;
 
diff --git a/tacc.c b/tacc.c
index 302058a..ef9d081 100644
--- a/tacc.c
+++ b/tacc.c
@@ -498,6 +498,7 @@ int main(int argc, char **argv) {
 }
 
 void sighandler(int sig __Unused) {
+    (void) sig;
     TACDEBUG(LOG_DEBUG, "caught signal %d", sig);
 }
 
@@ -602,12 +603,14 @@ void showversion(char *progname) {
 }
 
 void timeout_handler(int signum __Unused) {
+    (void) signum;
     syslog(LOG_ERR, "timeout reading password from user %s", g_user);
 }
 
 #ifdef TACDEBUG_AT_RUNTIME
 void logmsg(int level __Unused, const char *fmt, ...)
 {
+    (void) level;
     va_list ap;
 
     va_start(ap, fmt);