diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-05-10 13:42:46 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-05-10 13:42:46 +0000 |
commit | 45a48e2de21cbf1a48c6f478ed068e48f20f918b (patch) | |
tree | 9a7cd7a1a9fee56d1c5174600d6c63d7cd6f2c93 /nest/password.c | |
parent | a3f657ac764ff38a5829f27a0dccbf6220043a1a (diff) |
password_same utility function
Diffstat (limited to 'nest/password.c')
-rw-r--r-- | nest/password.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nest/password.c b/nest/password.c index 6a020287..b8acb53b 100644 --- a/nest/password.c +++ b/nest/password.c @@ -51,3 +51,11 @@ password_strncpy(char *to, char *from, int len) } } +int +password_same(struct password_item *old, struct password_item *new) +{ + return ((old->from == new->from) && + (old->to == new->to) && + (old->passive == new->passive) && + password_same(old, new)); +} |