Re: [PATCH iproute2-next v2] dcb: Fix compilation warning about reallocarray

2021-03-15 Thread David Ahern
On 3/15/21 7:10 AM, Petr Machata wrote: > Could this be merged, please? done

Re: [PATCH iproute2-next v2] dcb: Fix compilation warning about reallocarray

2021-03-15 Thread Petr Machata
Petr Machata writes: > Roi Dayan writes: > >> --- a/dcb/dcb_app.c >> +++ b/dcb/dcb_app.c >> @@ -65,8 +65,7 @@ static void dcb_app_table_fini(struct dcb_app_table *tab) >> >> static int dcb_app_table_push(struct dcb_app_table *tab, struct dcb_app >> *app) >> { >> -struct dcb_app *apps

Re: [PATCH iproute2-next v2] dcb: Fix compilation warning about reallocarray

2021-02-22 Thread Petr Machata
Roi Dayan writes: > --- a/dcb/dcb_app.c > +++ b/dcb/dcb_app.c > @@ -65,8 +65,7 @@ static void dcb_app_table_fini(struct dcb_app_table *tab) > > static int dcb_app_table_push(struct dcb_app_table *tab, struct dcb_app *app) > { > - struct dcb_app *apps = reallocarray(tab->apps, tab->n_app

[PATCH iproute2-next v2] dcb: Fix compilation warning about reallocarray

2021-02-22 Thread Roi Dayan
In older distros we need bsd/stdlib.h but newer distro doesn't need it. Also old distro will need libbsd-devel installed and newer doesn't. To remove a possible dependency on libbsd-devel replace usage of reallocarray to realloc. dcb_app.c: In function ‘dcb_app_table_push’: dcb_app.c:68:25: warnin