Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sushi Fix a few cases where NULL was used as integr...



details:   https://anonhg.NetBSD.org/src/rev/c40f9ad15d31
branches:  trunk
changeset: 553775:c40f9ad15d31
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:55:43 2003 +0000

description:
Fix a few cases where NULL was used as integral value.

diffstat:

 usr.sbin/sushi/scanform.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 160c2ab97f02 -r c40f9ad15d31 usr.sbin/sushi/scanform.c
--- a/usr.sbin/sushi/scanform.c Tue Oct 21 02:53:57 2003 +0000
+++ b/usr.sbin/sushi/scanform.c Tue Oct 21 02:55:43 2003 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: scanform.c,v 1.29 2003/10/16 06:19:11 itojun Exp $       */
+/*      $NetBSD: scanform.c,v 1.30 2003/10/21 02:55:43 fvdl Exp $       */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -136,7 +136,7 @@
 
         if ((fte = malloc(sizeof(FTREE_ENTRY))) == NULL ||
                 ((fte->desc = strdup(desc)) == NULL) ||
-                ((fte->type = type) == NULL) ||
+                ((fte->type = type) == 0) ||
                ((fte->data = strdup(data)) == NULL))
                         bailout("malloc: %s", strerror(errno));
        fte->required = req;
@@ -476,7 +476,7 @@
                /* NOTREACHED */
                break;
        case DUMPSCREEN:
-               do_scrdump(NULL, NULL, NULL, NULL);
+               do_scrdump(0, NULL, NULL, 0);
                return(FALSE);
                /* NOTREACHED */
                break;
@@ -1595,7 +1595,7 @@
 
        label = newCDKLabel(cdkscreen, CENTER, CENTER, msg, lines, TRUE, FALSE);
        activateCDKLabel(label, NULL);
-       waitCDKLabel(label, NULL);
+       waitCDKLabel(label, 0);
        destroyCDKLabel(label);
        touchwin(stdscr);
        wrefresh(stdscr);



Home | Main Index | Thread Index | Old Index