bcmp(3) tries to return length, which is a size_t, as an int.
authormillert <millert@openbsd.org>
Thu, 13 Jul 2023 20:33:30 +0000 (20:33 +0000)
committermillert <millert@openbsd.org>
Thu, 13 Jul 2023 20:33:30 +0000 (20:33 +0000)
commit996ed212dfaa3a04ce46abccc4c9546db1b8a756
tree6aa549ab17f82a9c73bcf752a2b5906ff4cefa86
parentfbc429365932c6266257a905bfa231397ce9bf98
bcmp(3) tries to return length, which is a size_t, as an int.
Instead, just return 1 if there is a difference, else 0.
Fixed by ray@ in 2008 but the libkern version was not synced.
OK deraadt@
sys/lib/libkern/bcmp.c