diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/seq_window.c | 4 | ||||
-rw-r--r-- | src/seq_window.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/seq_window.c b/src/seq_window.c index 5adf5b3..55be299 100644 --- a/src/seq_window.c +++ b/src/seq_window.c @@ -67,9 +67,11 @@ void seq_win_clear(seq_win_t* win) free(to_free); } + + win->first_ = NULL; } -seq_win_element_t* seq_win_new_element(sender_id_t sender_id, seq_nr_t max, window_size_t size) +static seq_win_element_t* seq_win_new_element(sender_id_t sender_id, seq_nr_t max, window_size_t size) { if(!size) return NULL; diff --git a/src/seq_window.h b/src/seq_window.h index 3a5478e..51bb1eb 100644 --- a/src/seq_window.h +++ b/src/seq_window.h @@ -53,7 +53,6 @@ typedef struct seq_win_struct seq_win_t; int seq_win_init(seq_win_t* win, window_size_t size); void seq_win_clear(seq_win_t* win); -seq_win_element_t* seq_win_new_element(sender_id_t sender_id, seq_nr_t max, window_size_t size); int seq_win_check_and_add(seq_win_t* win, sender_id_t sender_id, seq_nr_t seq_nr); void seq_win_print(seq_win_t* win); |