summaryrefslogtreecommitdiffstats
path: root/lib/tests/test_tcp.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-09-15 14:06:55 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-09-15 14:06:55 +0200
commitf855c5b5bbbc6d5436741fd8108be64825a3c76b (patch)
tree0ee1242bc21dc75a12fae03a5bb211fe10c89625 /lib/tests/test_tcp.c
parent8ef825d85fb4d09c32ca44c545d6eb8d995ddea4 (diff)
downloadmonitoring-plugins-f855c5b5bbbc6d5436741fd8108be64825a3c76b.tar.gz
general refactorin in lib, more local variables, real booleans
Diffstat (limited to 'lib/tests/test_tcp.c')
-rw-r--r--lib/tests/test_tcp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/tests/test_tcp.c b/lib/tests/test_tcp.c
index de3a2102..37c818c9 100644
--- a/lib/tests/test_tcp.c
+++ b/lib/tests/test_tcp.c
@@ -21,11 +21,10 @@
21#include "tap.h" 21#include "tap.h"
22 22
23int main(void) { 23int main(void) {
24 char **server_expect;
25 int server_expect_count = 3;
26
27 plan_tests(9); 24 plan_tests(9);
28 25
26 char **server_expect;
27 const int server_expect_count = 3;
29 server_expect = malloc(sizeof(char *) * server_expect_count); 28 server_expect = malloc(sizeof(char *) * server_expect_count);
30 29
31 server_expect[0] = strdup("AA"); 30 server_expect[0] = strdup("AA");