[Pkg-shadow-commits] r1636 - in upstream/trunk: . libmisc src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sat Jan 5 13:37:32 UTC 2008
Author: nekral-guest
Date: 2008-01-05 13:37:32 +0000 (Sat, 05 Jan 2008)
New Revision: 1636
Modified:
upstream/trunk/ChangeLog
upstream/trunk/libmisc/log.c
upstream/trunk/libmisc/pam_pass.c
upstream/trunk/src/chage.c
Log:
* 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.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-01-05 13:32:32 UTC (rev 1635)
+++ upstream/trunk/ChangeLog 2008-01-05 13:37:32 UTC (rev 1636)
@@ -12,6 +12,11 @@
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 at centraliens.net>
Modified: upstream/trunk/libmisc/log.c
===================================================================
--- upstream/trunk/libmisc/log.c 2008-01-05 13:32:32 UTC (rev 1635)
+++ upstream/trunk/libmisc/log.c 2008-01-05 13:37:32 UTC (rev 1636)
@@ -37,6 +37,13 @@
#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)
{
Modified: upstream/trunk/libmisc/pam_pass.c
===================================================================
--- upstream/trunk/libmisc/pam_pass.c 2008-01-05 13:32:32 UTC (rev 1635)
+++ upstream/trunk/libmisc/pam_pass.c 2008-01-05 13:37:32 UTC (rev 1636)
@@ -18,7 +18,10 @@
#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;
Modified: upstream/trunk/src/chage.c
===================================================================
--- upstream/trunk/src/chage.c 2008-01-05 13:32:32 UTC (rev 1635)
+++ upstream/trunk/src/chage.c 2008-01-05 13:37:32 UTC (rev 1636)
@@ -87,6 +87,7 @@
#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 @@
/*
* 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)) {
More information about the Pkg-shadow-commits
mailing list