Re: [PATCH v4 2/2] bsearch: prevent overflow when computing middle comparison element

From: Rusty Russell
Date: Mon Oct 04 2010 - 19:32:34 EST


On Fri, 24 Sep 2010 03:20:12 pm matt mooney wrote:
> > + * bsearch - binary search an array of elements
> > + * @key: pointer to item being searched for
> > + * @base: pointer to data to sort
>
> The comment for "@base" seems wrong. It appears that it should say "pointer to
> sorted data" or "pointer to search data" instead.

Thanks, fixed:

+ * @base: pointer to first element to search

Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/