mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:24:58 +00:00

In C++, a function declaration with an empty parameter list means that the function takes no arguments. In C, however, it means that the function takes an unspecified number of parameters. What we did previously was therefore non-conforming. This caused a config check to fail in the curl port, as it was able to redeclare `rand` as taking an int parameter.
18 lines
394 B
C
18 lines
394 B
C
/*
|
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Kernel/API/POSIX/net/if.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
unsigned int if_nametoindex(char const* ifname);
|
|
char* if_indextoname(unsigned int ifindex, char* ifname);
|
|
struct if_nameindex* if_nameindex(void);
|
|
void if_freenameindex(struct if_nameindex* ptr);
|
|
|
|
__END_DECLS
|