mirror of
https://github.com/norohind/hans.git
synced 2025-06-03 17:11:15 +03:00
Corrected empty C argument lists
This commit is contained in:
parent
d2679783af
commit
832e2ee3ae
12
tunemu.c
12
tunemu.c
@ -100,12 +100,12 @@ static void tun_error(char *format, ...)
|
|||||||
va_end(vl);
|
va_end(vl);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tun_noerror()
|
static void tun_noerror(void)
|
||||||
{
|
{
|
||||||
*tunemu_error = 0;
|
*tunemu_error = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void closeall()
|
static void closeall(void)
|
||||||
{
|
{
|
||||||
int fd = getdtablesize();
|
int fd = getdtablesize();
|
||||||
while (fd--)
|
while (fd--)
|
||||||
@ -116,7 +116,7 @@ static void closeall()
|
|||||||
dup(0);
|
dup(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ppp_load_kext()
|
static int ppp_load_kext(void)
|
||||||
{
|
{
|
||||||
int pid = fork();
|
int pid = fork();
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
@ -152,7 +152,7 @@ static int ppp_load_kext()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ppp_new_instance()
|
static int ppp_new_instance(void)
|
||||||
{
|
{
|
||||||
// create ppp socket
|
// create ppp socket
|
||||||
int ppp_sockfd = socket(PF_PPP, SOCK_RAW, PPPPROTO_CTL);
|
int ppp_sockfd = socket(PF_PPP, SOCK_RAW, PPPPROTO_CTL);
|
||||||
@ -228,7 +228,7 @@ static int ppp_setup_unit(int unit_fd)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int open_pcap()
|
static int open_pcap(void)
|
||||||
{
|
{
|
||||||
if (pcap != NULL)
|
if (pcap != NULL)
|
||||||
{
|
{
|
||||||
@ -250,7 +250,7 @@ static int open_pcap()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void close_pcap()
|
static void close_pcap(void)
|
||||||
{
|
{
|
||||||
if (pcap == NULL)
|
if (pcap == NULL)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user