summaryrefslogtreecommitdiff
path: root/nest/password.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-10 13:42:46 +0000
committerPavel Machek <pavel@ucw.cz>2000-05-10 13:42:46 +0000
commit45a48e2de21cbf1a48c6f478ed068e48f20f918b (patch)
tree9a7cd7a1a9fee56d1c5174600d6c63d7cd6f2c93 /nest/password.c
parenta3f657ac764ff38a5829f27a0dccbf6220043a1a (diff)
password_same utility function
Diffstat (limited to 'nest/password.c')
-rw-r--r--nest/password.c8
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));
+}