summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_zp.c
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/i386/isa/if_zp.c
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/i386/isa/if_zp.c')
-rw-r--r--sys/i386/isa/if_zp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c
index 5ac6b08..e63024a 100644
--- a/sys/i386/isa/if_zp.c
+++ b/sys/i386/isa/if_zp.c
@@ -34,7 +34,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $
- * $Id: if_zp.c,v 1.5 1995/04/20 07:22:04 phk Exp $
+ * $Id: if_zp.c,v 1.6 1995/05/30 08:02:31 rgrimes Exp $
*/
/*-
* TODO:
@@ -330,9 +330,9 @@ zp_check_cis(unsigned char *scratch)
card_info[k++] = '\0';
#ifdef ZP_DEBUG
printf("card info = %s\n", card_info);
- printf("result = %d\n", memcmp(card_info, CARD_INFO, sizeof(CARD_INFO) - 1) == 0);
+ printf("result = %d\n", bcmp(card_info, CARD_INFO, sizeof(CARD_INFO) - 1) == 0);
#endif
- return (memcmp(card_info, CARD_INFO, sizeof(CARD_INFO) - 1) == 0);
+ return (bcmp(card_info, CARD_INFO, sizeof(CARD_INFO) - 1) == 0);
}
i += 4 + 2 * link;
}
OpenPOWER on IntegriCloud