Modify Makefile clean rule to remove compilation artifacts by their extension (.exe, .out, ...), not their full name
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user