diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 16:09:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-15 16:09:40 +0200 |
| commit | 601a48a63e745817cf2a4c7f3ca526e393dd3fb8 (patch) | |
| tree | ed011d8f2bfcde8750bca64c0f69407df4bd6444 /lib/tests/test_tcp.c | |
| parent | 8ef825d85fb4d09c32ca44c545d6eb8d995ddea4 (diff) | |
| parent | 15ecdb73ce5cda54f824e5a63ee8e801bf16a996 (diff) | |
| download | monitoring-plugins-601a48a63e745817cf2a4c7f3ca526e393dd3fb8.tar.gz | |
Merge pull request #2150 from RincewindsHat/refactor/lib
general refactorin in lib, more local variables, real booleans
Diffstat (limited to 'lib/tests/test_tcp.c')
| -rw-r--r-- | lib/tests/test_tcp.c | 5 |
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 | ||
| 23 | int main(void) { | 23 | int 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"); |
