summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/auth.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-12-21 21:47:19 +0000
committerkmacy <kmacy@FreeBSD.org>2007-12-21 21:47:19 +0000
commit0c072476c76ef010b7c27f6120df9b58a8db65e7 (patch)
tree1da52326e56d465dfa25b95e6b50023ad4395d7c /usr.sbin/ppp/auth.c
parente6712341fe1f9b868e1174fb8a50b13bbb7303ab (diff)
downloadFreeBSD-src-0c072476c76ef010b7c27f6120df9b58a8db65e7.zip
FreeBSD-src-0c072476c76ef010b7c27f6120df9b58a8db65e7.tar.gz
Fix/workaround build breakage caused by PAM import
struct pam_conv takes a void * for the appdata_ptr but is being passed a const char * - explicitly cast away the const
Diffstat (limited to 'usr.sbin/ppp/auth.c')
-rw-r--r--usr.sbin/ppp/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c
index b5038ed..b8d572b 100644
--- a/usr.sbin/ppp/auth.c
+++ b/usr.sbin/ppp/auth.c
@@ -140,7 +140,7 @@ auth_CheckPasswd(const char *name, const char *data, const char *key)
#ifdef _OPENPAM
&openpam_nullconv, NULL
#else
- &pam_conv, key
+ &pam_conv, (char *)key
#endif
};
OpenPOWER on IntegriCloud