Module Name:    src
Committed By:   dholland
Date:           Mon May 25 00:05:56 UTC 2009

Modified Files:
        src/games/trek: systemname.c

Log Message:
Null for pointers, not 0.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/games/trek/systemname.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/trek/systemname.c
diff -u src/games/trek/systemname.c:1.8 src/games/trek/systemname.c:1.9
--- src/games/trek/systemname.c:1.8	Sun May 24 20:39:43 2009
+++ src/games/trek/systemname.c	Mon May 25 00:05:56 2009
@@ -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 @@
 
 	i &= Q_SYSTEM;
 	if (i == 0)
-		return (0);
+		return NULL;
 	return (Systemname[i]);
 }

Reply via email to