From: Nicolas Pitre Date: Mon, 26 Feb 2007 19:55:56 +0000 (-0500) Subject: sha1_file.c: cleanup "offset" usage X-Git-Tag: v1.5.1-rc1~119^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2b87c45ba6f8950ffc44cb6a3c861ad2e5f176a8?hp=2b87c45ba6f8950ffc44cb6a3c861ad2e5f176a8 sha1_file.c: cleanup "offset" usage First there are too many offsets there and it is getting confusing. So 'offset' is now 'curpos' to distinguish from other offsets like 'obj_offset'. Then structures like x = foo(x, &y) are now done as y = foo(&x). It looks more natural that the result y be returned directly and x be passed as reference to be updated in place. This has the effect of reducing some line length and removing a few, needing a bit less stack space, and it even reduces the compiled code size. Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano ---