]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in if_ovpn_c.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Sat, 13 Aug 2022 17:40:07 +0000 (19:40 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 11:11:52 +0000 (13:11 +0200)
commitab28cc352b532ce739b9d9e4bdf948e7bfec5d21
tree0469a490d8c709b3f0aa142159d7a3aee6303365
parent9356efa8c8291ac816784e852cfb9c7c6bc8c91a
Adjust function definition in if_ovpn_c.c to avoid clang 15 warning

With clang 15, the following -Werror warning is produced:

    tests/sys/net/if_ovpn/if_ovpn_c.c:19:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    fake_sockaddr()
 ^
  void

This is because fake_sockaddr() is declared with a (void) argument list,
but defined with an empty argument list. Make the definition match the
declaration.

MFC after:      3 days
tests/sys/net/if_ovpn/if_ovpn_c.c