Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops wsfont cookies <= 0 are invalid, not just tho...



details:   https://anonhg.NetBSD.org/src/rev/b581a2e0b5f7
branches:  trunk
changeset: 472979:b581a2e0b5f7
user:      ad <ad%NetBSD.org@localhost>
date:      Sat May 15 12:54:53 1999 +0000

description:
wsfont cookies <= 0 are invalid, not just those < 0.

diffstat:

 sys/dev/rasops/rasops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 98e83ac82010 -r b581a2e0b5f7 sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Sat May 15 12:52:22 1999 +0000
+++ b/sys/dev/rasops/rasops.c   Sat May 15 12:54:53 1999 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rasops.c,v 1.6 1999/05/09 17:50:27 ad Exp $ */
+/*      $NetBSD: rasops.c,v 1.7 1999/05/15 12:54:53 ad Exp $ */
 
 /*
  * Copyright (c) 1999 Andy Doran <ad%NetBSD.org@localhost>
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.6 1999/05/09 17:50:27 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.7 1999/05/15 12:54:53 ad Exp $");
 
 #include "rasops_glue.h"
 
@@ -107,10 +107,10 @@
                wsfont_init();
 
                /* Want 8 pixel wide, don't care about aestethics */
-               if ((cookie = wsfont_find(NULL, 8, 0, 0)) < 0)
+               if ((cookie = wsfont_find(NULL, 8, 0, 0)) <= 0)
                        cookie = wsfont_find(NULL, 0, 0, 0);
 
-               if (cookie < 0) {
+               if (cookie <= 0) {
                        printf("rasops_init: font table is empty\n");
                        return (-1);
                }



Home | Main Index | Thread Index | Old Index