Re: [PATCH v15 08/27] bisect--helper: `is_expected_rev` & `check_expected_revs` shell function in C
- From
Pranit Bauva <pranit.bauva@gmail.com>
- Date
- Dec 16, 2016, 19:00 UTC
- Message-ID
- <CAFZEwPO2WgBjOnmvu1VOiz3PMYYx2mxircCWk+BWxmuunC=VQA@mail.gmail.com>
- In-Reply-To
- <CAFZEwPOZhO=sXLVwh03C8QN0uVXBUfb=xZ-JS003tgCNLgVOjg@mail.gmail.com>
Hey Stephan,
On Wed, Dec 7, 2016 at 1:03 AM, Pranit Bauva <pranit.bauva@gmail.com> wrote:
Show 5 quoted lines
>> I don't understand why the return value is int and not void. To avoid a >> "return 0;" line when calling this function? > > Initially I thought I would be using the return value but now I > realize that it is meaningless to do so. Using void seems better. :)
I just recollected when I was creating the next iteration of this series that I will need that int.
>>> + case CHECK_EXPECTED_REVS: >>> + return check_expected_revs(argv, argc);
See this.
Regards, Pranit Bauva