Module Name: src Committed By: rillig Date: Sat Aug 28 19:27:44 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: lex.c src/usr.bin/xlint/lint2: hash.c Log Message: lint: fold constants in hash functions All platforms supported by lint have sizeof(unsigned int) == 4 and CHAR_BIT == 8. There is no need to encode these expressions in a hash function, they only made the code harder to read. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/usr.bin/xlint/lint1/lex.c cvs rdiff -u -r1.20 -r1.21 src/usr.bin/xlint/lint2/hash.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.