CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2020/08/02 12:35:48

Modified files:
        lib/libutil    : bcrypt_pbkdf.c 

Log message:
Squelch warning by using idiom from libc bcrypt(3)

Clang 10 warns about the expression sizeof(cdata) / sizeof(uint64_t) as
cdata is an array of uint32_t and it expects that the intent of this is
to compute the number of array elements. Use BCRYPT_WORDS / 2 instead.

Same diff as millert's commit sys/lib/libsa/bcrypt_pbkdf.c -r1.2, which
was ok kettenis. deraadt confirms that this satisfies clang 10.

Reply via email to