blob: 6d0d3b695646dc6c8c57c5b5f640850d6d437458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <string.h>
#include <bcnm/wpactrl.h>
void wpactrl_ackmsg (wpactrl_t *a)
{
if (a->datahead < a->data.len) a->datahead += strlen(a->data.s + a->datahead) + 1 ;
if (a->datahead >= a->data.len)
{
a->data.len = 0 ;
a->datahead = 0 ;
}
}
|