From 197894abb7e3493019c50e807eac54b7b2396e9f Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 2 Jan 2015 21:53:08 +0100 Subject: [PATCH hurd 2/4] auth: simplify expression * auth/auth.c (S_auth_{user,server}_authenticate): Simplify expression. --- auth/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/auth.c b/auth/auth.c index c36bcb2..a7a188a 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); -- 2.1.4