diff options
author | bde <bde@FreeBSD.org> | 1995-07-25 22:18:56 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-07-25 22:18:56 +0000 |
commit | 3055a59ca7d155763f9838052f32a1da6df3235a (patch) | |
tree | 1bce4079daad9842d7575e3c446184fc5e19658e /sys/i386/isa/if_ze.c | |
parent | dc57933a474b71b19adc1431b512241d740e7ac4 (diff) | |
download | FreeBSD-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/i386/isa/if_ze.c')
-rw-r--r-- | sys/i386/isa/if_ze.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c index b1de9e6..3fede85 100644 --- a/sys/i386/isa/if_ze.c +++ b/sys/i386/isa/if_ze.c @@ -47,7 +47,7 @@ */ /* - * $Id: if_ze.c,v 1.16 1995/05/24 20:33:42 davidg Exp $ + * $Id: if_ze.c,v 1.17 1995/05/30 08:02:27 rgrimes Exp $ */ #include "ze.h" @@ -209,11 +209,11 @@ ze_check_cis (unsigned char *scratch) card_info[k++] = scratch[j] == '\0' ? '~' : scratch[j]; card_info[k++] = '\0'; #if 0 - return (memcmp (card_info, CARD_INFO, sizeof(CARD_INFO)-1) == 0); + return (bcmp (card_info, CARD_INFO, sizeof(CARD_INFO)-1) == 0); #else - if ((memcmp (card_info, CARD_INFO, sizeof(CARD_INFO)-1) == 0) || - (memcmp (card_info, CARD2_INFO, sizeof(CARD2_INFO)-1) == 0) || - (memcmp (card_info, CARD3_INFO, sizeof(CARD3_INFO)-1) == 0)) { + if ((bcmp (card_info, CARD_INFO, sizeof(CARD_INFO)-1) == 0) || + (bcmp (card_info, CARD2_INFO, sizeof(CARD2_INFO)-1) == 0) || + (bcmp (card_info, CARD3_INFO, sizeof(CARD3_INFO)-1) == 0)) { return 1; } return 0; |