This is a small cleanup to remove a superfluous argument
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20220422134038.
3801239-10-arne@rfc2549.org>
URL: https://www.mail-archive.com/search?l=mid&q=
20220422134038.
3801239-10-arne@rfc2549.org
Signed-off-by: Gert Doering <gert@greenie.muc.de>
/* delete a buffer previously activated by reliable_mark_active() */
void
-reliable_mark_deleted(struct reliable *rel, struct buffer *buf, bool inc_pid)
+reliable_mark_deleted(struct reliable *rel, struct buffer *buf)
{
int i;
for (i = 0; i < rel->size; ++i)
if (buf == &e->buf)
{
e->active = false;
- if (inc_pid)
- {
- rel->packet_id = e->packet_id + 1;
- }
+ rel->packet_id = e->packet_id + 1;
return;
}
}
* @param inc_pid If true, the reliable structure's packet ID counter
* will be incremented.
*/
-void reliable_mark_deleted(struct reliable *rel, struct buffer *buf, bool inc_pid);
+void reliable_mark_deleted(struct reliable *rel, struct buffer *buf);
/** @} name Functions for extracting incoming packets */
}
if (status == 1)
{
- reliable_mark_deleted(ks->rec_reliable, buf, true);
+ reliable_mark_deleted(ks->rec_reliable, buf);
state_change = true;
dmsg(D_TLS_DEBUG, "Incoming Ciphertext -> TLS");
}