Modify Makefile clean rule to remove compilation artifacts by their extension (.exe, .out, ...), not their full name

This commit is contained in:
2025-11-17 11:46:23 +01:00
parent 46db334a2e
commit 3fc1e12623
2 changed files with 11 additions and 15 deletions
+4 -9
View File
@@ -50,15 +50,10 @@ libtoastyfs.a: $(OFILES)
clean: clean:
rm -f \ rm -f \
toastyfs.exe \ *.exe \
toastyfs.out \ *.out \
toastyfs_random_test.exe \ *.a \
toastyfs_random_test.out \ *.gcov \
toastyfs_random_test_coverage.exe \
toastyfs_random_test_coverage.out \
example_client.exe \
example_client.out \
libtoastyfs.a \
src/*.o \ src/*.o \
src/*.gcda \ src/*.gcda \
src/*.gcno \ src/*.gcno \
+2 -1
View File
@@ -407,9 +407,10 @@ void tcp_set_tag(TCP *tcp, int conn_idx, int tag, bool unique)
{ {
assert(tag != -1); assert(tag != -1);
if (unique) if (unique) {
for (int i = 0; i < tcp->num_conns; i++) for (int i = 0; i < tcp->num_conns; i++)
assert(tcp->conns[i].tag != tag); assert(tcp->conns[i].tag != tag);
}
tcp->conns[conn_idx].tag = tag; tcp->conns[conn_idx].tag = tag;
} }