mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
void function return statements are not generally useful
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
@@ -68,7 +68,6 @@ void writer(int fd)
|
||||
assert(write(fd, buf+j, 1) == 1);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
void receiver(int fd)
|
||||
@@ -87,8 +86,6 @@ void receiver(int fd)
|
||||
fprintf(stderr, "received %d\n", ret);
|
||||
assert(ret > 0);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
||||
@@ -76,7 +76,6 @@ static void check(const char *ip)
|
||||
exit(1);
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static void check_port(const char *ip, unsigned port)
|
||||
@@ -105,7 +104,6 @@ static void check_port(const char *ip, unsigned port)
|
||||
exit(1);
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
|
||||
void fw_port_st__init(FwPortSt *message)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void check_vals(FwPortSt **fw_ports, size_t n_fw_ports) {
|
||||
|
||||
Reference in New Issue
Block a user