From: Michael Haggerty Date: Sat, 19 Apr 2014 18:56:10 GMT Subject: Re: [PATCH 01/11] refs.c: constify the sha arguments for ref_transaction_create|delete|update Message-ID: <5352C6CA.7080803@alum.mit.edu> In-Reply-To: <1397763987-4453-2-git-send-email-sahlberg@google.com> On 04/17/2014 09:46 PM, Ronnie Sahlberg wrote: > ref_transaction_create|delete|update has no need to modify the sha1 > arguments passed to it so it should use const unsigned char* instead > of unsigned char*. > > Some functions, such as fast_forward_to(), already have its old/new > sha1 arguments as consts. This function will at some point need to > use ref_transaction_update() in which case this change is required. Good, thanks. Michael -- Michael Haggerty mhagger@alum.mit.edu http://softwareswirl.blogspot.com/