summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-07-11 21:12:28 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-07-11 21:12:28 +0000
commitbf1da69192dfd6c10ac6dbae522d0ed40ebecf3a (patch)
tree6d5b837efa96a42c8d554ceca81ba9e166a64956 /pw/pw_user.c
parent13824e6c6765b7a1d67b0ffaab60aa0612bee252 (diff)
downloadpw-darwin-bf1da69192dfd6c10ac6dbae522d0ed40ebecf3a.tar.gz
pw-darwin-bf1da69192dfd6c10ac6dbae522d0ed40ebecf3a.tar.zst
pw-darwin-bf1da69192dfd6c10ac6dbae522d0ed40ebecf3a.zip
Remove unused argument from pm_passwd
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 9e16793..6aa0c47 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -59,7 +59,7 @@ static time_t pw_pwdpolicy(struct userconf * cnf, struct cargs * args);
static time_t pw_exppolicy(struct userconf * cnf, struct cargs * args);
static char *pw_homepolicy(struct userconf * cnf, struct cargs * args, char const * user);
static char *pw_shellpolicy(struct userconf * cnf, struct cargs * args, char *newshell);
-static char *pw_password(struct userconf * cnf, struct cargs * args, char const * user);
+static char *pw_password(struct userconf * cnf, char const * user);
static char *shell_path(char const * path, char *shells[], char *sh);
static void rmat(uid_t uid);
static void rmopie(char const * name);
@@ -608,7 +608,7 @@ pw_user(int mode, char *name, long id, struct cargs * args)
login_setcryptfmt(lc, "sha512", NULL) == NULL)
warn("setting crypt(3) format");
login_close(lc);
- pwd->pw_passwd = pw_password(cnf, args, pwd->pw_name);
+ pwd->pw_passwd = pw_password(cnf, pwd->pw_name);
edited = 1;
}
@@ -640,7 +640,7 @@ pw_user(int mode, char *name, long id, struct cargs * args)
if (lc == NULL || login_setcryptfmt(lc, "sha512", NULL) == NULL)
warn("setting crypt(3) format");
login_close(lc);
- pwd->pw_passwd = pw_password(cnf, args, pwd->pw_name);
+ pwd->pw_passwd = pw_password(cnf, pwd->pw_name);
edited = 1;
if (pwd->pw_uid == 0 && strcmp(pwd->pw_name, "root") != 0)
@@ -1038,7 +1038,7 @@ pw_pwcrypt(char *password)
static char *
-pw_password(struct userconf * cnf, struct cargs * args, char const * user)
+pw_password(struct userconf * cnf, char const * user)
{
int i, l;
char pwbuf[32];