]> granicus.if.org Git - shadow/commitdiff
* libmisc/pam_pass.c: Define do_pam_passwd() as static and add its prototype.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:37:32 +0000 (13:37 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:37:32 +0000 (13:37 +0000)
* libmisc/log.c: Define dolastlog() as static and add its prototype.
* src/chage.c: Define isnum() as static and add its prototype.

ChangeLog
libmisc/log.c
libmisc/pam_pass.c
src/chage.c

index dbed65a60c71da52a2099cc78123d67270aeb460..785a420c49b4431eee026773219c878aab4883cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        prototype.
        * libmisc/xgetXXbyYY.c, libmisc/yesno.c: Include config.h as a
        system include, as recommended by the autoconf documentation.
+       * libmisc/pam_pass.c: Define do_pam_passwd() as static and add its
+       prototype.
+       * libmisc/log.c: Define dolastlog() as static and add its
+       prototype.
+       * src/chage.c: Define isnum() as static and add its prototype.
 
 2008-01-01  Nicolas François  <nicolas.francois@centraliens.net>
 
index c870a42bf036016ef5a8a2e7d0b7e2b08d3d67a3..77ac87c8f23722987b9b0b12d9e0c73c2fc79f32 100644 (file)
 #include <time.h>
 #include "defines.h"
 #include <lastlog.h>
+
+/* local function prototypes */
+static void dolastlog (struct lastlog *ll,
+                       const struct passwd *pw,
+                       const char *line,
+                       const char *host);
+
 /* 
  * dolastlog - create lastlog entry
  *
@@ -44,7 +51,7 @@
  *     UID is extracted from the global (struct passwd) entry and the
  *     TTY information is gotten from the (struct utmp).
  */
-void
+static void
 dolastlog (struct lastlog *ll, const struct passwd *pw, const char *line,
           const char *host)
 {
index 6edc72129ce9bf1877048f3345161f8bca91b86b..09b460b5c4f65579c1367d9ffce0eca8064bfdfd 100644 (file)
 #include "defines.h"
 #include "pam_defs.h"
 
-void do_pam_passwd (const char *user, int silent, int change_expired)
+/* local function prototypes */
+static void do_pam_passwd (const char *user, int silent, int change_expired);
+
+static void do_pam_passwd (const char *user, int silent, int change_expired)
 {
        pam_handle_t *pamh = NULL;
        int flags = 0, ret;
index bbaf99f238efa14134844b2e8db48a0c4ba9a9f0..4cce6f31556a28c6bc374174c98a39103bd7074e 100644 (file)
@@ -87,6 +87,7 @@ static pam_handle_t *pamh = NULL;
 #define        EPOCH           "1969-12-31"
 
 /* local function prototypes */
+static int isnum (const char *s);
 static void usage (void);
 static void date_to_str (char *, size_t, time_t);
 static int new_fields (void);
@@ -135,7 +136,7 @@ static void fail_exit (int code)
 /*
  * isnum - determine whether or not a string is a number
  */
-int isnum (const char *s)
+static int isnum (const char *s)
 {
        while ('\0' != *s) {
                if (!isdigit (*s)) {