aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_beginrequest_body_pack.c
blob: 400be69599874f8425fc71e5981474f4d4d006c6 (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_pack (char *s, fcgi_beginrequest_body const *bd)
{
  uint16_pack_big(s, bd->role) ; s += 2 ;
  *s++ = bd->flags ;
  memset(s, 0, 5) ;
}