diff options
Diffstat (limited to 'src/libtipidee/tipidee_fcgi_endrequest_body_unpack.c')
| -rw-r--r-- | src/libtipidee/tipidee_fcgi_endrequest_body_unpack.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_fcgi_endrequest_body_unpack.c b/src/libtipidee/tipidee_fcgi_endrequest_body_unpack.c new file mode 100644 index 0000000..9f52f18 --- /dev/null +++ b/src/libtipidee/tipidee_fcgi_endrequest_body_unpack.c @@ -0,0 +1,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 ; +} |
