]> git.ipfire.org Git - thirdparty/iproute2.git/commit
dcb: Fix compilation warning about reallocarray
authorRoi Dayan <roid@nvidia.com>
Mon, 22 Feb 2021 12:10:30 +0000 (14:10 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 4 Mar 2021 02:56:39 +0000 (18:56 -0800)
commit9f366536edb5158343152604e82b968be46dbf26
treec1459ef6ae57770411382fae1bb19f6d25774949
parent6739068fb08a5b699f4a1136894b26690401f968
dcb: Fix compilation warning about reallocarray

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: warning: implicit declaration of function ‘reallocarray’; did you mean ‘realloc’?

Fixes: 8e9bed1493f5 ("dcb: Add a subtool for the DCB APP object")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
dcb/dcb_app.c