mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
Test: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code. Also, in the case of test-crypto.cpp, I took the liberty to add the prefix 'g_' to the global event loop.
This commit is contained in:
parent
2b76f48a17
commit
76da9a4a7d
9 changed files with 191 additions and 192 deletions
|
@ -33,12 +33,12 @@
|
|||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
void test_invalid(int);
|
||||
void test_no_route(int);
|
||||
void test_valid(int);
|
||||
void test_send(int);
|
||||
static void test_invalid(int);
|
||||
static void test_no_route(int);
|
||||
static void test_valid(int);
|
||||
static void test_send(int);
|
||||
|
||||
void test(AK::Function<void(int)> test_fn)
|
||||
static void test(AK::Function<void(int)> test_fn)
|
||||
{
|
||||
|
||||
int fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue