aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-07-21 18:38:36 -0500
committerRob Landley <rob@landley.net>2012-07-21 18:38:36 -0500
commit6ba38c2c79c12c5f2227ee4a87c9875fae407332 (patch)
treee63a13020909ab6a881b4283465284af3fbbcd82 /lib
parent6d878191f18b89ac6c40f078fd62e8b61f484023 (diff)
downloadtoybox-6ba38c2c79c12c5f2227ee4a87c9875fae407332.tar.gz
Use "_password" instead of "_passwd" for names in lib/password.c.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.h4
-rw-r--r--lib/password.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/lib.h b/lib/lib.h
index de2e214c..992d7d24 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -170,6 +170,6 @@ char *num_to_sig(int sig);
mode_t string_to_mode(char *mode_str, mode_t base);
// password helper functions
-int read_passwd(char * buff, int buflen, char* mesg);
-int update_passwd(char *filename, char* username, char* encrypted);
+int read_password(char * buff, int buflen, char* mesg);
+int update_password(char *filename, char* username, char* encrypted);
diff --git a/lib/password.c b/lib/password.c
index 2b11144e..8221a022 100644
--- a/lib/password.c
+++ b/lib/password.c
@@ -8,7 +8,7 @@
#include <time.h>
-int read_passwd(char * buff, int buflen, char* mesg)
+int read_password(char * buff, int buflen, char* mesg)
{
int i = 0;
struct termios termio, oldtermio;
@@ -52,7 +52,7 @@ static char *get_nextcolon(const char *line, char delim)
return current_ptr;
}
-int update_passwd(char *filename, char* username, char* encrypted)
+int update_password(char *filename, char* username, char* encrypted)
{
char *filenamesfx = NULL, *namesfx = NULL;
char *shadow = NULL, *sfx = NULL;