1
Fork 0
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:
Ben Wiederhake 2020-08-11 00:02:25 +02:00 committed by Andreas Kling
parent 2b76f48a17
commit 76da9a4a7d
9 changed files with 191 additions and 192 deletions

View file

@ -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);