From d679e94c8702a8c7a45c13011dedcb8247a6339f Mon Sep 17 00:00:00 2001 From: jdolecek Date: Wed, 9 Oct 2002 16:59:19 +0000 Subject: [PATCH] tlp_pci_vpc_21140_quirks(): make agnostic to signed/unsigned char; fixes compile on cats --- sys/dev/pci/if_tlp_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_tlp_pci.c b/sys/dev/pci/if_tlp_pci.c index d78ace7ffb39..6e163c37b454 100644 --- a/sys/dev/pci/if_tlp_pci.c +++ b/sys/dev/pci/if_tlp_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_tlp_pci.c,v 1.69 2002/10/08 15:09:54 minoura Exp $ */ +/* $NetBSD: if_tlp_pci.c,v 1.70 2002/10/09 16:59:19 jdolecek Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.69 2002/10/08 15:09:54 minoura Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.70 2002/10/09 16:59:19 jdolecek Exp $"); #include #include @@ -1305,7 +1305,7 @@ tlp_pci_vpc_21140_quirks(psc, enaddr) char *p2 = &sc->sc_name[0]; do { - if (*p1 < 0) + if ((unsigned char) *p1 & 0x80) *p2++ = ' '; else *p2++ = *p1;