From: Mike Frysinger Date: Tue, 12 Feb 2013 14:52:36 +0000 (-0500) Subject: key_call: utilize uname() all the time X-Git-Tag: libtirpc-0-2-3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60c3181e17497be5581d5b5dd23417d2a778daaa;p=libtirpc key_call: utilize uname() all the time 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 --- diff --git a/src/key_call.c b/src/key_call.c index 709ac70..906b2f6 100644 --- a/src/key_call.c +++ b/src/key_call.c @@ -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); }