1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 20:42:48 -05:00

Replace all 'sizeof(x)/sizeof(*x)' with lenof.

I noticed a few of these in the course of preparing the previous
commit. I must have been writing that idiom out by hand for _ages_
before it became totally habitual to #define it as 'lenof' in every
codebase I touch. Now I've gone through and replaced all the old
verbosity with nice terse lenofs.
This commit is contained in:
Simon Tatham
2019-01-04 07:13:08 +00:00
parent 35690040fd
commit 0b14e7376e
14 changed files with 22 additions and 55 deletions

View File

@ -1047,7 +1047,4 @@ static const ssh2_cipheralg *const ccp_list[] = {
&ssh2_chacha20_poly1305
};
const ssh2_ciphers ssh2_ccp = {
sizeof(ccp_list) / sizeof(*ccp_list),
ccp_list
};
const ssh2_ciphers ssh2_ccp = { lenof(ccp_list), ccp_list };