Re: [PATCH] builtin/rm.c: Use ALLOG_GROW instead of alloc_nr and xrealloc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 13, 2010 at 11:37 PM, Thiago Farina <tfransosi@xxxxxxxxx> wrote:
> Signed-off-by: Thiago Farina <tfransosi@xxxxxxxxx>
> ---
> Âbuiltin/rm.c | Â Â5 +----
> Â1 files changed, 1 insertions(+), 4 deletions(-)
>
> diff --git a/builtin/rm.c b/builtin/rm.c
> index c7b7bb3..faeedfc 100644
> --- a/builtin/rm.c
> +++ b/builtin/rm.c
> @@ -22,10 +22,7 @@ static struct {
>
> Âstatic void add_list(const char *name)
> Â{
> - Â Â Â if (list.nr >= list.alloc) {
> - Â Â Â Â Â Â Â list.alloc = alloc_nr(list.alloc);
> - Â Â Â Â Â Â Â list.name = xrealloc(list.name, list.alloc * sizeof(const char *));
> - Â Â Â }
> + Â Â Â ALLOC_GROW(list.name, list.nr + 1, list.alloc);
> Â Â Â Âlist.name[list.nr++] = name;
> Â}
>

Disregard this, as I made a typo in the subject. Sent another patch
with the subject typo fixed. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]