summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-25 22:18:56 +0000
committerbde <bde@FreeBSD.org>1995-07-25 22:18:56 +0000
commit3055a59ca7d155763f9838052f32a1da6df3235a (patch)
tree1bce4079daad9842d7575e3c446184fc5e19658e /sys/dev/ed
parentdc57933a474b71b19adc1431b512241d740e7ac4 (diff)
downloadFreeBSD-src-3055a59ca7d155763f9838052f32a1da6df3235a.zip
FreeBSD-src-3055a59ca7d155763f9838052f32a1da6df3235a.tar.gz
Change memcmp() to bcmp(). memcmp() isn't declared or implemented
for the kernel, but gcc provides an inline version of it if the kernel is compiled with -O.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 100d8f7..af61f38 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -13,7 +13,7 @@
* the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,
* and a variety of similar clones.
*
- * $Id: if_ed.c,v 1.72 1995/05/14 11:01:20 davidg Exp $
+ * $Id: if_ed.c,v 1.73 1995/05/30 08:01:58 rgrimes Exp $
*/
#include "ed.h"
@@ -1074,12 +1074,12 @@ ed_probe_Novell(isa_dev)
/* Search for the start of RAM. */
for (x = 1; x < 256; x++) {
ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE);
- if (memcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) {
+ if (bcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) {
for (i = 0; i < ED_PAGE_SIZE; i++)
pbuf[i] = 255 - x;
ed_pio_writemem(sc, pbuf, x * 256, ED_PAGE_SIZE);
ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE);
- if (memcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0) {
+ if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0) {
mstart = x * ED_PAGE_SIZE;
msize = ED_PAGE_SIZE;
break;
@@ -1094,12 +1094,12 @@ ed_probe_Novell(isa_dev)
/* Search for the start of RAM. */
for (x = (mstart / ED_PAGE_SIZE) + 1; x < 256; x++) {
ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE);
- if (memcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) {
+ if (bcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) {
for (i = 0; i < ED_PAGE_SIZE; i++)
pbuf[i] = 255 - x;
ed_pio_writemem(sc, pbuf, x * 256, ED_PAGE_SIZE);
ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE);
- if (memcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0)
+ if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0)
msize += ED_PAGE_SIZE;
else {
break;
OpenPOWER on IntegriCloud