From: Jeff King Date: Wed, 15 May 2019 01:44:41 GMT Subject: Re: [PATCH 1/2] pkt-line: fix declaration of `set_packet_header()` Message-ID: <20190515014440.GA13255@sigill.intra.peff.net> In-Reply-To: On Wed, May 15, 2019 at 10:42:35AM +0900, Junio C Hamano wrote: > Jeff King writes: > > > I do have a slight preference for going the _other_ way. There is no > > need to mark the parameter as const in the definition. It is passed by > > value, so nobody except the function body cares either way. And we have > > many function bodies where value-passed parameters (or local variables!) > > are not marked as const, even though they are only assigned to once. > > That would be more like this patch, then? > > -- >8 -- > Subject: pkt-line: drop 'const'-ness of a param to set_packet_header() > [..] Yes, exactly. -Peff