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

#include <string.h>

#include <skalibs/uint32.h>

#include <tipidee/fcgi.h>

void tipidee_fcgi_endrequest_body_unpack (char const *s, fcgi_endrequest_body *bd)
{
  uint32_unpack_big(s, &bd->appstatus) ; s += 4 ;
  bd->protostatus = *s++ ;
  memcpy((char *)bd->reserved, s, 3) ; s += 3 ;
}