Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libterm No need to initialise globals BC and UP to NULL; ...



details:   https://anonhg.NetBSD.org/src/rev/fffbd400d0bb
branches:  trunk
changeset: 500560:fffbd400d0bb
user:      scw <scw%NetBSD.org@localhost>
date:      Wed Dec 13 22:14:40 2000 +0000

description:
No need to initialise globals BC and UP to NULL; this happens anyway
for BSS variables.
(Quells a linker warning on m68k because BC and UP are also declared
but not initialised in libcurses/curses.c)

diffstat:

 lib/libterm/tgoto.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 7f68f1fdf45f -r fffbd400d0bb lib/libterm/tgoto.c
--- a/lib/libterm/tgoto.c       Wed Dec 13 22:11:24 2000 +0000
+++ b/lib/libterm/tgoto.c       Wed Dec 13 22:14:40 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tgoto.c,v 1.17 2000/06/03 07:14:55 blymn Exp $ */
+/*     $NetBSD: tgoto.c,v 1.18 2000/12/13 22:14:40 scw Exp $   */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)tgoto.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: tgoto.c,v 1.17 2000/06/03 07:14:55 blymn Exp $");
+__RCSID("$NetBSD: tgoto.c,v 1.18 2000/12/13 22:14:40 scw Exp $");
 #endif
 #endif /* not lint */
 
@@ -52,8 +52,8 @@
 
 #define MAXRETURNSIZE 64
 
-char   *UP = NULL;
-char   *BC = NULL;
+char   *UP;
+char   *BC;
 
 /*
  * Routine to perform cursor addressing.



Home | Main Index | Thread Index | Old Index