DPADD is currently broken since LIBDIR != /usr/lib.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 12 Jul 2005 22:55:46 +0000 (22:55 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 12 Jul 2005 22:55:46 +0000 (22:55 +0000)
Stop using WARNS_NO_UNUSED_PARAMETERS here, fix it instead.

lib/pam_module/pam_cleartext_pass_ok/Makefile
lib/pam_module/pam_cleartext_pass_ok/pam_cleartext_pass_ok.c

index 23148be..e9d05f5 100644 (file)
@@ -1,12 +1,10 @@
-# $DragonFly: src/lib/pam_module/pam_cleartext_pass_ok/Makefile,v 1.1 2005/07/08 15:42:01 joerg Exp $
+# $DragonFly: src/lib/pam_module/pam_cleartext_pass_ok/Makefile,v 1.2 2005/07/12 22:55:46 joerg Exp $
 
 LIB=   pam_cleartext_pass_ok
 SRCS=  pam_cleartext_pass_ok.c
 WARNS?=        6
-WARNS_NO_UNUSED_PARAMETERS=
 NOMAN=
 
-DPADD= ${LIBSKEY}
 LDADD= -lskey
 
 .include <bsd.lib.mk>
index ca9f435..fd4d4ce 100644 (file)
@@ -24,7 +24,7 @@
  * SUCH DAMAGE.
  *
  *     $FreeBSD: src/lib/libpam/modules/pam_cleartext_pass_ok/pam_cleartext_pass_ok.c,v 1.2 1999/01/20 21:55:24 jdp Exp $
- *     $DragonFly: src/lib/pam_module/pam_cleartext_pass_ok/pam_cleartext_pass_ok.c,v 1.1 2005/07/08 15:42:01 joerg Exp $
+ *     $DragonFly: src/lib/pam_module/pam_cleartext_pass_ok/pam_cleartext_pass_ok.c,v 1.2 2005/07/12 22:55:46 joerg Exp $
  */
 
 #include <stdio.h>
@@ -35,8 +35,8 @@
 #include <security/pam_modules.h>
 
 PAM_EXTERN int
-pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
-    const char **argv)
+pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, int argc __unused,
+    const char **argv __unused)
 {
        int retval;
        const void *item;
@@ -61,7 +61,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
 }
 
 PAM_EXTERN int
-pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv)
+pam_sm_setcred(pam_handle_t *pamh __unused, int flags __unused,
+    int argc __unused, const char **argv __unused)
 {
        return PAM_SUCCESS;
 }