diff options
| author | thorpej <thorpej@NetBSD.org> | 1995-09-26 22:56:54 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1995-09-26 22:56:54 +0000 |
| commit | a47ab73248e4983ff78ab3fa31e1541665f02aa7 (patch) | |
| tree | 998a9433597f6296e14dad08a7bcc3fb1f734cb3 /sys/dev | |
| parent | 995b4710b8ea6ca98b549f615a67a6612c3dfb40 (diff) | |
memcmp -> bcmp. Fixes PR #1518.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/isa/aha1542.c | 4 | ||||
| -rw-r--r-- | sys/dev/isa/seagate.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/aha1542.c b/sys/dev/isa/aha1542.c index 10f2e12052a..1831c8c9ee3 100644 --- a/sys/dev/isa/aha1542.c +++ b/sys/dev/isa/aha1542.c @@ -1,4 +1,4 @@ -/* $NetBSD: aha1542.c,v 1.51 1995/09/26 19:31:15 thorpej Exp $ */ +/* $NetBSD: aha1542.c,v 1.52 1995/09/26 22:56:54 thorpej Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -1445,7 +1445,7 @@ aha_bus_speed_check(aha, speed) * first 54 bytes, because that's all the board copies during * WRITE_FIFO and READ_FIFO. */ - if (memcmp(aha_test_string, aha_scratch_buf, 54)) + if (bcmp(aha_test_string, aha_scratch_buf, 54)) return 0; /* failed test */ } diff --git a/sys/dev/isa/seagate.c b/sys/dev/isa/seagate.c index 4d07a096be3..2319e2ef55f 100644 --- a/sys/dev/isa/seagate.c +++ b/sys/dev/isa/seagate.c @@ -356,7 +356,7 @@ seaprobe(parent, match, aux) /* check board type */ /* No way to define this through config */ for (i = 0; i < nsignatures; i++) - if (!memcmp(sea->maddr + signatures[i].offset, + if (!bcmp(sea->maddr + signatures[i].offset, signatures[i].signature, signatures[i].length)) { sea->type = signatures[i].type; break; |
