Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 don't use NULL for an int initializ...
details: https://anonhg.NetBSD.org/src/rev/7be948a21f4d
branches: trunk
changeset: 553799:7be948a21f4d
user: petrov <petrov%NetBSD.org@localhost>
date: Tue Oct 21 08:26:31 2003 +0000
description:
don't use NULL for an int initialization.
diffstat:
sys/arch/sparc64/sparc64/autoconf.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r eb8f1a67384f -r 7be948a21f4d sys/arch/sparc64/sparc64/autoconf.c
--- a/sys/arch/sparc64/sparc64/autoconf.c Tue Oct 21 08:20:15 2003 +0000
+++ b/sys/arch/sparc64/sparc64/autoconf.c Tue Oct 21 08:26:31 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.83 2003/10/09 17:55:44 bouyer Exp $ */
+/* $NetBSD: autoconf.c,v 1.84 2003/10/21 08:26:31 petrov Exp $ */
/*
* Copyright (c) 1996
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.83 2003/10/09 17:55:44 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.84 2003/10/21 08:26:31 petrov Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -876,9 +876,9 @@
*/
int
romgetcursoraddr(rowp, colp)
- register int **rowp, **colp;
+ int **rowp, **colp;
{
- cell_t row = NULL, col = NULL;
+ cell_t row = 0UL, col = 0UL;
OF_interpret("stdout @ is my-self addr line# addr column# ", 0, 2,
&col, &row);
@@ -889,7 +889,7 @@
*/
*rowp = (int *)(row+4);
*colp = (int *)(col+4);
- return (row == NULL || col == NULL);
+ return (row == 0UL || col == 0UL);
}
#endif /* RASTERCONSOLE */
Home |
Main Index |
Thread Index |
Old Index