]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ibstat: Include prototype for sysctlbyname().
authorHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 27 May 2021 07:39:49 +0000 (09:39 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Sat, 10 Jul 2021 19:24:05 +0000 (21:24 +0200)
commit0f82fd0714a9e6faabb0fead2c3b1e42444c1400
tree297fca7f769b6bf873ece23395aae199f25f921e
parent1e68639f62f9d965cd46e6f5ca9c3dde0941d704
ibstat: Include prototype for sysctlbyname().

Fixes the following compile warning:
      implicit declaration of function 'sysctlbyname' is invalid in C99
      [-Wimplicit-function-declaration]

Found by: J87
Differential Revision: https://reviews.freebsd.org/D30484
Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 16fa3dcba027d13dcda9ee78e6057e3e5a79f80c)
contrib/ofed/infiniband-diags/src/ibstat.c