summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-01-02 21:53:08 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-01-17 18:24:58 +0100
commit2d371a0b01054843f294a6c5ff401bd2093604a4 (patch)
tree297c0636e1f305021ec872b125a456504bcb9007
parent361c586e263ebf4a0531045029c3cf076dbcb847 (diff)
auth: simplify expression
* auth/auth.c (S_auth_{user,server}_authenticate): Simplify expression.
-rw-r--r--auth/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth/auth.c b/auth/auth.c
index c36bcb20..a7a188a2 100644
--- a/auth/auth.c
+++ b/auth/auth.c
@@ -299,7 +299,7 @@ S_auth_user_authenticate (struct authhandle *userauth,
if (! userauth)
return EOPNOTSUPP;
- if (rendezvous == MACH_PORT_NULL || rendezvous == MACH_PORT_DEAD)
+ if (! MACH_PORT_VALID (rendezvous))
return EINVAL;
u.user = userauth;
@@ -380,7 +380,7 @@ S_auth_server_authenticate (struct authhandle *serverauth,
if (! serverauth)
return EOPNOTSUPP;
- if (rendezvous == MACH_PORT_NULL || rendezvous == MACH_PORT_DEAD)
+ if (! MACH_PORT_VALID (rendezvous))
return EINVAL;
pthread_mutex_lock (&pending_lock);