Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi bcmp -> memcmp
details: https://anonhg.NetBSD.org/src/rev/6299ccb72b5b
branches: trunk
changeset: 512879:6299ccb72b5b
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jul 18 18:27:08 2001 +0000
description:
bcmp -> memcmp
diffstat:
sys/dev/scsipi/if_se.c | 4 ++--
sys/dev/scsipi/scsipiconf.c | 8 ++++----
sys/dev/scsipi/ss_mustek.c | 6 +++---
sys/dev/scsipi/ss_scanjet.c | 10 +++++-----
4 files changed, 14 insertions(+), 14 deletions(-)
diffs (102 lines):
diff -r b0ba6b992d4e -r 6299ccb72b5b sys/dev/scsipi/if_se.c
--- a/sys/dev/scsipi/if_se.c Wed Jul 18 18:25:41 2001 +0000
+++ b/sys/dev/scsipi/if_se.c Wed Jul 18 18:27:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_se.c,v 1.36 2001/07/18 18:25:41 thorpej Exp $ */
+/* $NetBSD: if_se.c,v 1.37 2001/07/18 18:27:08 thorpej Exp $ */
/*
* Copyright (c) 1997 Ian W. Dall <ian.dall%dsto.defence.gov.au@localhost>
@@ -265,7 +265,7 @@
/*
* Compare two Ether/802 addresses for equality, inlined and
* unrolled for speed.
- * Note: use this like bcmp()
+ * Note: use this like memcmp()
*/
static __inline u_int16_t
ether_cmp(one, two)
diff -r b0ba6b992d4e -r 6299ccb72b5b sys/dev/scsipi/scsipiconf.c
--- a/sys/dev/scsipi/scsipiconf.c Wed Jul 18 18:25:41 2001 +0000
+++ b/sys/dev/scsipi/scsipiconf.c Wed Jul 18 18:27:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsipiconf.c,v 1.13 2001/04/25 17:53:40 bouyer Exp $ */
+/* $NetBSD: scsipiconf.c,v 1.14 2001/07/18 18:27:08 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -158,15 +158,15 @@
continue;
priority = 2;
len = strlen(match->vendor);
- if (bcmp(inqbuf->vendor, match->vendor, len))
+ if (memcmp(inqbuf->vendor, match->vendor, len))
continue;
priority += len;
len = strlen(match->product);
- if (bcmp(inqbuf->product, match->product, len))
+ if (memcmp(inqbuf->product, match->product, len))
continue;
priority += len;
len = strlen(match->revision);
- if (bcmp(inqbuf->revision, match->revision, len))
+ if (memcmp(inqbuf->revision, match->revision, len))
continue;
priority += len;
diff -r b0ba6b992d4e -r 6299ccb72b5b sys/dev/scsipi/ss_mustek.c
--- a/sys/dev/scsipi/ss_mustek.c Wed Jul 18 18:25:41 2001 +0000
+++ b/sys/dev/scsipi/ss_mustek.c Wed Jul 18 18:27:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ss_mustek.c,v 1.15 2001/07/18 18:25:41 thorpej Exp $ */
+/* $NetBSD: ss_mustek.c,v 1.16 2001/07/18 18:27:08 thorpej Exp $ */
/*
* Copyright (c) 1995 Joachim Koenig-Baltes. All rights reserved.
@@ -112,11 +112,11 @@
printf("\n%s: ", ss->sc_dev.dv_xname);
/* first, check the model which determines resolutions */
- if (!bcmp(sa->sa_inqbuf.product, "MFS-06000CX", 11)) {
+ if (!memcmp(sa->sa_inqbuf.product, "MFS-06000CX", 11)) {
ss->sio.scan_scanner_type = MUSTEK_06000CX;
printf("Mustek 6000CX Flatbed 3-pass color scanner, 3 - 600 dpi\n");
}
- if (!bcmp(sa->sa_inqbuf.product, "MFS-12000CX", 11)) {
+ if (!memcmp(sa->sa_inqbuf.product, "MFS-12000CX", 11)) {
ss->sio.scan_scanner_type = MUSTEK_12000CX;
printf("Mustek 12000CX Flatbed 3-pass color scanner, 6 - 1200 dpi\n");
}
diff -r b0ba6b992d4e -r 6299ccb72b5b sys/dev/scsipi/ss_scanjet.c
--- a/sys/dev/scsipi/ss_scanjet.c Wed Jul 18 18:25:41 2001 +0000
+++ b/sys/dev/scsipi/ss_scanjet.c Wed Jul 18 18:27:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ss_scanjet.c,v 1.24 2001/07/18 18:25:41 thorpej Exp $ */
+/* $NetBSD: ss_scanjet.c,v 1.25 2001/07/18 18:27:08 thorpej Exp $ */
/*
* Copyright (c) 1995 Kenneth Stailey. All rights reserved.
@@ -100,19 +100,19 @@
/* first, check the model (which determines nothing yet) */
- if (!bcmp(sa->sa_inqbuf.product, "C1750A", 6)) {
+ if (!memcmp(sa->sa_inqbuf.product, "C1750A", 6)) {
ss->sio.scan_scanner_type = HP_SCANJET_IIC;
printf("HP ScanJet IIc");
}
- if (!bcmp(sa->sa_inqbuf.product, "C2500A", 6)) {
+ if (!memcmp(sa->sa_inqbuf.product, "C2500A", 6)) {
ss->sio.scan_scanner_type = HP_SCANJET_IIC;
printf("HP ScanJet IIcx");
}
- if (!bcmp(sa->sa_inqbuf.product, "C1130A", 6)) {
+ if (!memcmp(sa->sa_inqbuf.product, "C1130A", 6)) {
ss->sio.scan_scanner_type = HP_SCANJET_IIC;
printf("HP ScanJet 4p");
}
- if (!bcmp(sa->sa_inqbuf.product, "C5110A", 6)) {
+ if (!memcmp(sa->sa_inqbuf.product, "C5110A", 6)) {
ss->sio.scan_scanner_type = HP_SCANJET_IIC;
printf("HP ScanJet 5p");
}
Home |
Main Index |
Thread Index |
Old Index