On Sat, Jan 02, 2010 at 12:35:44PM +0100, Grégoire Sutre wrote:
>> Can you avoid code duplication here?  Something like:
>>
>> #ifdef __NetBSD__
>>   const char *template = "%s/r%s";
>> #else
>>   const char *template = "%s/%s";
>> #endif
>
> Indeed, it's better.  But we also need a variable for the extra length  
> (3 for NetBSD and 2 otherwise).  I have updated the patch.

I understand;  don't worry about that, GCC is smart and space is cheap in
util/ anyway.

> http://pkgsrc-wip.cvs.sourceforge.net/viewvc/*checkout*/pkgsrc-wip/wip/grub2-current/patches/patch-grub-probe-netbsd

Would you please send patches as attachments?  URLs don't make it easy for
review.

Thanks!

-- 
Robert Millan

  "Be the change you want to see in the world" -- Gandhi


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to