(issuid): change the #ifdef order to avoid unreachable code warning.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15131 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-05-13 07:42:03 +00:00
parent 570ef02561
commit 2b2439af68

View File

@@ -43,7 +43,8 @@ issuid(void)
{ {
#if defined(HAVE_ISSETUGID) #if defined(HAVE_ISSETUGID)
return issetugid(); return issetugid();
#endif #else /* !HAVE_ISSETUGID */
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) #if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
if(getuid() != geteuid()) if(getuid() != geteuid())
return 1; return 1;
@@ -52,5 +53,7 @@ issuid(void)
if(getgid() != getegid()) if(getgid() != getegid())
return 2; return 2;
#endif #endif
return 0; return 0;
#endif /* HAVE_ISSETUGID */
} }