summaryrefslogtreecommitdiff
path: root/games/atc
diff options
context:
space:
mode:
Diffstat (limited to 'games/atc')
-rw-r--r--games/atc/include.h2
-rw-r--r--games/atc/log.c12
2 files changed, 1 insertions, 13 deletions
diff --git a/games/atc/include.h b/games/atc/include.h
index fb600f12768..98e5e3004e1 100644
--- a/games/atc/include.h
+++ b/games/atc/include.h
@@ -60,11 +60,9 @@
#include <sys/file.h>
#endif
-#ifdef SYSV
#include <fcntl.h>
#include <unistd.h>
#include <sys/utsname.h>
-#endif
#include <signal.h>
#include <math.h>
diff --git a/games/atc/log.c b/games/atc/log.c
index 53f3590a918..a9680218ac1 100644
--- a/games/atc/log.c
+++ b/games/atc/log.c
@@ -125,9 +125,7 @@ log_score(list_em)
struct passwd *pw;
char *cp;
SCORE score[100], thisscore;
-#ifdef SYSV
struct utsname name;
-#endif
#ifdef BSD
if (flock(fileno(score_fp), LOCK_EX) < 0)
@@ -158,16 +156,8 @@ log_score(list_em)
return (-1);
}
strcpy(thisscore.name, pw->pw_name);
-#ifdef BSD
- if (gethostname(thisscore.host, sizeof (thisscore.host)) < 0) {
- perror("gethostname");
- return (-1);
- }
-#endif
-#ifdef SYSV
uname(&name);
- strcpy(thisscore.host, name.sysname);
-#endif
+ strcpy(thisscore.host, name.nodename);
cp = strrchr(file, '/');
if (cp == NULL) {