projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformat: delete trailing whitespace
[idzebra-moved-to-github.git]
/
util
/
passwddb.c
diff --git
a/util/passwddb.c
b/util/passwddb.c
index
f3113be
..
b8ac8d8
100644
(file)
--- a/
util/passwddb.c
+++ b/
util/passwddb.c
@@
-57,7
+57,7
@@
Passwd_db passwd_db_open (void)
}
static int get_entry (const char **p, char *dst, int max)
}
static int get_entry (const char **p, char *dst, int max)
-{
+{
int i = 0;
while ((*p)[i] != ':' && (*p)[i])
i++;
int i = 0;
while ((*p)[i] != ':' && (*p)[i])
i++;
@@
-109,7
+109,7
@@
void passwd_db_close(Passwd_db db)
while (pe)
{
struct passwd_entry *pe_next = pe->next;
while (pe)
{
struct passwd_entry *pe_next = pe->next;
-
+
xfree (pe->name);
xfree (pe->des);
xfree (pe);
xfree (pe->name);
xfree (pe->des);
xfree (pe);
@@
-166,7
+166,7
@@
int passwd_db_auth(Passwd_db db, const char *user, const char *pass)
if (strcmp (pe->des, pass))
return -2;
}
if (strcmp (pe->des, pass))
return -2;
}
- return 0;
+ return 0;
}
int passwd_db_file_crypt(Passwd_db db, const char *fname)
}
int passwd_db_file_crypt(Passwd_db db, const char *fname)