]> granicus.if.org Git - libtirpc/commitdiff
key_call: utilize uname() all the time
authorMike Frysinger <vapier@gentoo.org>
Tue, 12 Feb 2013 14:52:36 +0000 (09:52 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 12 Feb 2013 14:53:24 +0000 (09:53 -0500)
Since we already rely on the utsname struct existing, and uname() is in
POSIX, drop the ifdef trickery around the call.

Signed-off-by: Steve Dickson <steved@redhat.com>
src/key_call.c

index 709ac70fdc47ef8b836aad1f383e49bbeef7b2aa..906b2f6cd4a1b0e13fd142a6bfd4143f9ff8632f 100644 (file)
@@ -351,18 +351,7 @@ int        vers;
                return ((CLIENT *) NULL);
        }
         tpconf = NULL;
-#if defined(__FreeBSD__)
-       if (uname(&u) == -1)
-#else
-#if defined(i386)
-       if (uname(&u) == -1)
-#elif defined(sparc)
-       if (uname(&u) == -1)
-#else
-#error Unknown architecture!
-#endif
-#endif
-       {
+       if (uname(&u) == -1) {
                endnetconfig(localhandle);
                return ((CLIENT *) NULL);
         }