summaryrefslogtreecommitdiffstats
path: root/trek
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-25 00:05:56 +0000
committerdholland <dholland@NetBSD.org>2009-05-25 00:05:56 +0000
commitd94a9b5dea5c721a6db0064e291d1c654bc89607 (patch)
tree8b415f7a4d865983655de16a703dade4ba953847 /trek
parent823434e1f933dc114c6b85417356e1b2def22882 (diff)
downloadbsdgames-darwin-d94a9b5dea5c721a6db0064e291d1c654bc89607.tar.gz
bsdgames-darwin-d94a9b5dea5c721a6db0064e291d1c654bc89607.tar.zst
bsdgames-darwin-d94a9b5dea5c721a6db0064e291d1c654bc89607.zip
Null for pointers, not 0.
Diffstat (limited to 'trek')
-rw-r--r--trek/systemname.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/trek/systemname.c b/trek/systemname.c
index 2cf8b692..0eabec24 100644
--- a/trek/systemname.c
+++ b/trek/systemname.c
@@ -1,4 +1,4 @@
-/* $NetBSD: systemname.c,v 1.8 2009/05/24 20:39:43 dholland Exp $ */
+/* $NetBSD: systemname.c,v 1.9 2009/05/25 00:05:56 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,10 +34,11 @@
#if 0
static char sccsid[] = "@(#)systemname.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: systemname.c,v 1.8 2009/05/24 20:39:43 dholland Exp $");
+__RCSID("$NetBSD: systemname.c,v 1.9 2009/05/25 00:05:56 dholland Exp $");
#endif
#endif /* not lint */
+#include <stddef.h>
#include "trek.h"
/*
@@ -65,6 +66,6 @@ systemname(const struct quad *q1)
i &= Q_SYSTEM;
if (i == 0)
- return (0);
+ return NULL;
return (Systemname[i]);
}