Skip to content

Commit 80bd6b0

Browse files
committed
Updated license and renamed destructor functions
1 parent 85c64e8 commit 80bd6b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+86
-86
lines changed

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 2-Clause License
22

3-
Copyright (c) 2023, Andrea Giacomo Baldan
3+
Copyright (c) 2025, Andrea Giacomo Baldan
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

src/bst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* BSD 2-Clause License
33
*
4-
* Copyright (c) 2023 Andrea Giacomo Baldan All rights reserved.
4+
* Copyright (c) 2025 Andrea Giacomo Baldan All rights reserved.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:

src/bst.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* BSD 2-Clause License
33
*
4-
* Copyright (c) 2023 Andrea Giacomo Baldan All rights reserved.
4+
* Copyright (c) 2025 Andrea Giacomo Baldan All rights reserved.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -45,6 +45,6 @@ struct bst_node *bst_search(const struct bst_node *, unsigned char);
4545

4646
struct bst_node *bst_delete(struct bst_node *, unsigned char);
4747

48-
void bst_destroy(struct bst_node *, void (*free_fn)(struct bst_node *));
48+
void bst_free(struct bst_node *, void (*free_fn)(struct bst_node *));
4949

5050
#endif

src/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* BSD 2-Clause License
22
*
3-
* Copyright (c) 2023, Andrea Giacomo Baldan All rights reserved.
3+
* Copyright (c) 2025, Andrea Giacomo Baldan All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions are met:

src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* BSD 2-Clause License
22
*
3-
* Copyright (c) 2023, Andrea Giacomo Baldan All rights reserved.
3+
* Copyright (c) 2025, Andrea Giacomo Baldan All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions are met:

src/ev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* BSD 2-Clause License
22
*
3-
* Copyright (c) 2023, Andrea Giacomo Baldan All rights reserved.
3+
* Copyright (c) 2025, Andrea Giacomo Baldan All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions are met:

src/ev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* BSD 2-Clause License
22
*
3-
* Copyright (c) 2023, Andrea Giacomo Baldan All rights reserved.
3+
* Copyright (c) 2025, Andrea Giacomo Baldan All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions are met:

src/handlers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* BSD 2-Clause License
22
*
3-
* Copyright (c) 2023, Andrea Giacomo Baldan All rights reserved.
3+
* Copyright (c) 2025, Andrea Giacomo Baldan All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions are met:
@@ -86,8 +86,8 @@ static void session_free(const struct ref *refcount)
8686
{
8787
struct client_session *session =
8888
container_of(refcount, struct client_session, refcount);
89-
list_destroy(session->subscriptions, 0);
90-
list_destroy(session->outgoing_msgs, 0);
89+
list_free(session->subscriptions, 0);
90+
list_free(session->outgoing_msgs, 0);
9191
if (has_inflight(session)) {
9292
for (int i = 0; i < MAX_INFLIGHT_MSGS; ++i) {
9393
if (session->i_msgs[i].packet)

src/handlers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* BSD 2-Clause License
22
*
3-
* Copyright (c) 2023, Andrea Giacomo Baldan All rights reserved.
3+
* Copyright (c) 2025, Andrea Giacomo Baldan All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions are met:

src/iterator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* BSD 2-Clause License
33
*
4-
* Copyright (c) 2023, Andrea Giacomo Baldan All rights reserved.
4+
* Copyright (c) 2025, Andrea Giacomo Baldan All rights reserved.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -50,7 +50,7 @@ void iter_init(struct iterator *i, void *iterable,
5050
iter_next(i);
5151
}
5252

53-
void iter_destroy(struct iterator *i) { free_memory(i); }
53+
void iter_free(struct iterator *i) { free_memory(i); }
5454

5555
/*
5656
* Advance the iterator ptr to the next item in the iterable collection

0 commit comments

Comments
 (0)