diff options
author | Karl Ramm <kcr@1ts.org> | 2010-03-17 15:29:10 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2010-03-17 15:29:10 +0000 |
commit | 9a378d1a622dd7d69da60b0973f212409be53d9c (patch) | |
tree | 7b2c3f9794dcd26cbfb31429d8e29d5f1573f219 | |
parent | bdebdf31d76e65ee7a45ffaea219510fc7b9a3a7 (diff) |
It is the twenty-first century, we don't need #ifdef ladders anymore.
-rw-r--r-- | server/version.c | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/server/version.c b/server/version.c index d2b23ce..3f4db17 100644 --- a/server/version.c +++ b/server/version.c @@ -48,41 +48,11 @@ get_version(void) #endif /* DEBUG */ (void) strcat(vers_buf, "/"); -#ifdef vax - (void) strcat(vers_buf, "VAX"); -#endif /* vax */ -#ifdef ibm032 - (void) strcat(vers_buf, "IBM RT"); -#endif /* ibm032 */ -#ifdef _IBMR2 - (void) strcat(vers_buf, "IBM RS/6000"); -#endif /* _IBMR2 */ -#ifdef sun - (void) strcat(vers_buf, "SUN"); -#ifdef sparc - (void) strcat (vers_buf, "-4"); -#endif /* sparc */ -#ifdef sun386 - (void) strcat (vers_buf, "-386I"); -#endif /* sun386 */ -#endif /* sun */ -#ifdef mips -#ifdef ultrix /* DECstation */ - (void) strcat (vers_buf, "DEC-"); -#endif /* ultrix */ - (void) strcat(vers_buf, "MIPS"); -#endif /* mips */ -#ifdef NeXT - (void) strcat(vers_buf, "NeXT"); -#endif /* NeXT */ - - if (vers_buf[strlen(vers_buf) - 1] == '/') { - uname(&un); - (void) strcat(vers_buf, un.machine); - (void) strcat(vers_buf, "-"); - (void) strcat(vers_buf, un.sysname); - } + uname(&un); + (void) strcat(vers_buf, un.machine); + (void) strcat(vers_buf, "-"); + (void) strcat(vers_buf, un.sysname); } return(vers_buf); } |