]> granicus.if.org Git - shadow/commitdiff
Fix typos.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 9 May 2009 13:15:38 +0000 (13:15 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 9 May 2009 13:15:38 +0000 (13:15 +0000)
lib/prototypes.h
libmisc/pam_pass_non_interractive.c

index f2c7ebbbc15f1a4d378b329036f0ede35333914d..ccbf1bceb4fef0d677596a518d96d14245b288d0 100644 (file)
@@ -239,9 +239,11 @@ extern void motd (void);
 extern /*@null@*/struct passwd *get_my_pwent (void);
 
 /* pam_pass_non_interractive.c */
+#ifdef USE_PAM
 extern int do_pam_passwd_non_interractive (const char *pam_service,
                                            const char *username,
-                                           const char* password)
+                                           const char* password);
+#endif                         /* USE_PAM */
 
 /* obscure.c */
 #ifndef USE_PAM
index 7c597249b267fb2166df905789e38021e033bfb5..8bdb3426e612c3c53cc3dcf67005ea376613f9ec 100644 (file)
@@ -159,6 +159,8 @@ int do_pam_passwd_non_interractive (const char *pam_service,
        }
 
        (void) pam_end (pamh, PAM_SUCCESS);
+
+       return ((PAM_SUCCESS == ret) ? 0 : 1);
 }
 #else                          /* !USE_PAM */
 extern int errno;              /* warning: ANSI C forbids an empty source file */