Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/dev Fix spruious false matches in px_match().



details:   https://anonhg.NetBSD.org/src/rev/39c722651bfa
branches:  trunk
changeset: 472740:39c722651bfa
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 06 01:50:56 1999 +0000

description:
Fix spruious false matches in px_match().

diffstat:

 sys/arch/pmax/dev/px.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r ffaf93f31123 -r 39c722651bfa sys/arch/pmax/dev/px.c
--- a/sys/arch/pmax/dev/px.c    Thu May 06 01:10:28 1999 +0000
+++ b/sys/arch/pmax/dev/px.c    Thu May 06 01:50:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: px.c,v 1.7 1999/04/29 02:50:25 ad Exp $ */
+/*     $NetBSD: px.c,v 1.8 1999/05/06 01:50:56 thorpej Exp $ */
 
 /*
  * Copyright (c) 1999 Andy Doran <ad%NetBSD.org@localhost>
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.7 1999/04/29 02:50:25 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.8 1999/05/06 01:50:56 thorpej Exp $");
 
 /*
  * px.c: driver for the DEC TURBOchannel 2D and 3D accelerated framebuffers
@@ -264,10 +264,10 @@
        int i;
 
        for (i = 0; i < NUM_PX_TYPES; i++)
-               if (!strncmp(px_types[i], ta->ta_modname, TC_ROM_LLEN))
-                       break;
+               if (strncmp(px_types[i], ta->ta_modname, TC_ROM_LLEN) == 0)
+                       return (1);
 
-       return (px_types[i] != NULL);
+       return (0);
 }
 
 



Home | Main Index | Thread Index | Old Index