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
+9 -14
View File
@@ -49,18 +49,13 @@ libtoastyfs.a: $(OFILES)
ar rcs $@ $^
clean:
rm -f \
toastyfs.exe \
toastyfs.out \
toastyfs_random_test.exe \
toastyfs_random_test.out \
toastyfs_random_test_coverage.exe \
toastyfs_random_test_coverage.out \
example_client.exe \
example_client.out \
libtoastyfs.a \
src/*.o \
src/*.gcda \
src/*.gcno \
*.gcda \
rm -f \
*.exe \
*.out \
*.a \
*.gcov \
src/*.o \
src/*.gcda \
src/*.gcno \
*.gcda \
*.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);
if (unique)
if (unique) {
for (int i = 0; i < tcp->num_conns; i++)
assert(tcp->conns[i].tag != tag);
}
tcp->conns[conn_idx].tag = tag;
}