aboutsummaryrefslogtreecommitdiff
path: root/package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-04-20 15:48:46 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-04-21 08:30:52 +0200
commitcca807a3a3c1c20ad1a95a83da609a1c32b2d1ca (patch)
tree94980f24ded57b7f81f5ede3aa1dc8285755438f /package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch
parentf89ca996b6deb660b53c33196b8b309fac659bf9 (diff)
downloadbuildroot-cca807a3a3c1c20ad1a95a83da609a1c32b2d1ca.tar.gz
buildroot-cca807a3a3c1c20ad1a95a83da609a1c32b2d1ca.tar.bz2
package/libpam-tacplus: fix build on musl
Retrieve two upstream patches to fix build on musl Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch')
-rw-r--r--package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch b/package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch
new file mode 100644
index 0000000000..b9e48841c0
--- /dev/null
+++ b/package/libpam-tacplus/0003-Fix-unused-parameters-with-musl.patch
@@ -0,0 +1,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);