aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_endrequest_body_pack.c
blob: d289d6df4bbae58d4460eddce8f4584fce86c5ee (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_pack (char *s, fcgi_endrequest_body const *bd)
{
  uint32_pack_big(s, bd->appstatus) ; s += 4 ;
  *s++ = bd->protostatus ;
  memset(s, 0, 3) ;
}