Re: [PATCH v2 2/3] grub: Make grub_envblk_iterate() return an int

2019-01-16 Thread Daniel Kiper
On Wed, Jan 16, 2019 at 01:34:42PM -0500, Prarit Bhargava wrote: > grub_envblk_iterate() is a void. Future functions will require the > ability to interpret return codes from the iteration, so > grub_envblk_iterate() should be an int. > > The value of 0 returned from the hook functions is

[PATCH v2 2/3] grub: Make grub_envblk_iterate() return an int

2019-01-16 Thread Prarit Bhargava
grub_envblk_iterate() is a void. Future functions will require the ability to interpret return codes from the iteration, so grub_envblk_iterate() should be an int. The value of 0 returned from the hook functions is overloaded and cannot be parsed by callers to grub_envblk_iterate() for error