Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Don't compare an int against NULL.



details:   https://anonhg.NetBSD.org/src/rev/13063d828f7d
branches:  trunk
changeset: 553724:13063d828f7d
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 00:25:21 2003 +0000

description:
Don't compare an int against NULL.

diffstat:

 lib/libcurses/color.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r aa6ffe31303a -r 13063d828f7d lib/libcurses/color.c
--- a/lib/libcurses/color.c     Tue Oct 21 00:22:04 2003 +0000
+++ b/lib/libcurses/color.c     Tue Oct 21 00:25:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: color.c,v 1.26 2003/10/05 08:26:02 jdc Exp $   */
+/*     $NetBSD: color.c,v 1.27 2003/10/21 00:25:21 fvdl Exp $  */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: color.c,v 1.26 2003/10/05 08:26:02 jdc Exp $");
+__RCSID("$NetBSD: color.c,v 1.27 2003/10/21 00:25:21 fvdl Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -588,7 +588,7 @@
 void
 __restore_colors(void)
 {
-       if (__tc_cc != NULL)
+       if (__tc_cc != 0)
                switch (_cursesi_screen->color_type) {
                case COLOR_HP:
                        /* XXX: need to re-initialise HP style (Ip) */



Home | Main Index | Thread Index | Old Index