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 da8d9c9b49
commit f29c1d7df4
2 changed files with 3 additions and 3 deletions

View File

@ -1407,8 +1407,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;
}