Page MenuHomeFreeBSD

[crypto][NFC] Fix compiler warnings about variable types in libcrypt
Needs ReviewPublic

Authored by gfunni234_gmail.com on Aug 22 2021, 6:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 21, 6:02 AM
Unknown Object (File)
Dec 20 2023, 4:36 AM
Unknown Object (File)
Dec 13 2023, 12:08 AM
Unknown Object (File)
Dec 10 2023, 12:09 PM
Unknown Object (File)
Nov 11 2023, 3:25 PM
Unknown Object (File)
Nov 11 2023, 2:56 PM
Unknown Object (File)
Nov 9 2023, 3:35 PM
Unknown Object (File)
Nov 9 2023, 2:41 PM
Subscribers
None

Details

Reviewers
imp
jrtc27
dim
Summary

Instead of casting from unsigned and signed and vice versa, we should be consistent with signedness.

NFC this if possible please!

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

gfunni234_gmail.com created this revision.
gfunni234_gmail.com retitled this revision from [crypto][NFC]Fix compiler warnings about variable types in libcrypt to [crypto][NFC] Fix compiler warnings about variable types in libcrypt.
gfunni234_gmail.com edited the summary of this revision. (Show Details)

Most of these changes have nothing to do with what your summary says

lib/libcrypt/crypt-md5.c
46

So now we have a magic constant rather than being automatically calculated by strlen (which, yes, compilers know about and will constant evaluate)?

lib/libcrypt/crypt-sha256.c
186

This regresses code style