aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_beginrequest_body_unpack.c
blob: a729b039c9994faf2c8dd473ab01c693e98c62df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <string.h>

#include <skalibs/uint16.h>

#include <tipidee/fcgi.h>

void tipidee_fcgi_beginrequest_body_unpack (char const *s, fcgi_beginrequest_body *bd)
{
  uint16_unpack_big(s, &bd->role) ; s += 2 ;
  bd->flags = *s++ ;
  memcpy((char *)bd->reserved, s, 5) ; s += 5 ;
}