vmnet: use void as argument list in function definitions (#188)

Two functions use "foo()" rather than proper "foo(void)" in their
definitions and as reported, clang compiler treats it as an error.

While at it, also mark VNetFreeInterfaceList() static to make its
definition match the declaration.
This commit is contained in:
Michal Kubecek 2023-02-17 09:41:26 +01:00
parent 00dade1588
commit efc76a69ac
2 changed files with 3 additions and 3 deletions

View File

@ -1439,8 +1439,8 @@ VNetCycleDetectIf(const char *name, // IN:
*----------------------------------------------------------------------
*/
void
VNetFreeInterfaceList()
static void
VNetFreeInterfaceList(void)
{
while (vnetInterfaces != NULL) {
VNetInterface *next = vnetInterfaces->next;

View File

@ -83,7 +83,7 @@
*/
unsigned long SMACINT
SMACL_GetUptime()
SMACL_GetUptime(void)
{
return jiffies;
}