summaryrefslogtreecommitdiff
path: root/inotail.1
AgeCommit message (Expand)AuthorFilesLines
2006-08-23Fix hyphen-used-as-minus-sign warning spit out by lintianTobias Klauser1-1/+1
2006-08-23Unify commandline switch description between binary and manpageTobias Klauser1-5/+5
2006-08-23Fix up doccoTobias Klauser1-2/+2
2006-08-15Updates to manpageTobias Klauser1-4/+6
2006-08-13Add manpageTobias Klauser1-0/+51
lass='right'>2016-04-05 20:35:49 +0800 commitb698538951a45dd853d9e40f51e143fdd46a60c6 (patch) tree394b7d92b978c137b10c3496cfb4af0797d3e14f /lib/mpi/mpicoder.c parent462696fd0fd2aae2fd38d22d19b2d08a55606014 (diff)
lib/mpi: mpi_read_raw_from_sgl(): replace len argument by nbytes
Currently, the nbytes local variable is calculated from the len argument as follows: ... mpi_read_raw_from_sgl(..., unsigned int len) { unsigned nbytes; ... if (!ents) nbytes = 0; else nbytes = len - lzeros; ... } Given that nbytes is derived from len in a trivial way and that the len argument is shadowed by a local len variable in several loops, this is just confusing. Rename the len argument to nbytes and get rid of the nbytes local variable. Do the nbytes calculation in place. Signed-off-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi/mpicoder.c')