mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
Preferably bcmp would just alias memcmp but there is build magic which makes this problematic. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D28846
16 lines
230 B
C
16 lines
230 B
C
/*-
|
|
* Written by Mateusz Guzik <mjg@freebsd.org>
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <sys/cdefs.h>
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
#include <string.h>
|
|
|
|
int
|
|
bcmp(const void *b1, const void *b2, size_t len)
|
|
{
|
|
|
|
return (memcmp(b1, b2, len));
|
|
}
|