From 7b400f7466132320906e1e02f99a16c0c7ab8a28 Mon Sep 17 00:00:00 2001 From: elvis Date: Mon, 2 May 2022 23:26:05 +0200 Subject: [PATCH] order of includes --- Makefile | 2 +- scripts/test1.sh | 7 ++----- src/client.c | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index ad66daa..b6645e2 100644 --- a/Makefile +++ b/Makefile @@ -135,4 +135,4 @@ test2: all @echo "backlog = 100" >> $(BUILD_DIR)/config.txt $(BUILD_DIR)/server $(BUILD_DIR)/config.txt & bash scripts/test2.sh - pkill -1 server + pkill --signal SIGHUP server diff --git a/scripts/test1.sh b/scripts/test1.sh index 3b9d7b7..f31a079 100644 --- a/scripts/test1.sh +++ b/scripts/test1.sh @@ -1,8 +1,5 @@ #!/bin/sh -./build/client -t 200 -f socket -w testFiles/1 -D build/Wdir -W testFiles/1/file1 -r testFiles/1/file1 -d build/Rdir -R n=3 -p - -exit 0 - -./client -t 200 -f socket -w testFiles -D build/Wdir -W testFiles/6/f1 -r testFiles/6/f1 -d build/Rdir -R n=3 -l testFiles/6/f1 -u testFiles/6/f1 -c testFiles/6/f1 -p +./build/client -t 200 -f socket -w testFiles/1 -D build/Wdir -W testFiles/2/file6 -r testFiles/2/file6 -d build/Rdir -R n=3 -p +./build/client -t 200 -f socket -w testFiles/2 -D build/Wdir -W testFiles/6/f1 -r testFiles/6/f1 -d build/Rdir -R n=3 -l testFiles/6/f1 -u testFiles/6/f1 -l testFiles/6/f1 -c testFiles/6/f1 -p exit 0 diff --git a/src/client.c b/src/client.c index 6f4984a..85d5e02 100644 --- a/src/client.c +++ b/src/client.c @@ -2,13 +2,13 @@ #include #include -#include #include #include #include #include -#include #include +#include +#include #include #include