From 08f03cde6b469428494d3870ac54f740fd4641c4 Mon Sep 17 00:00:00 2001 From: grunfink Date: Tue, 8 Jul 2025 17:30:45 +0200 Subject: Added some const here and there. --- xs_fcgi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xs_fcgi.h') diff --git a/xs_fcgi.h b/xs_fcgi.h index 0b53dac..b3cb892 100644 --- a/xs_fcgi.h +++ b/xs_fcgi.h @@ -13,7 +13,7 @@ #define _XS_FCGI_H xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *id); - void xs_fcgi_response(FILE *f, int status, xs_dict *headers, xs_str *body, int b_size, int id); + void xs_fcgi_response(FILE *f, int status, const xs_dict *headers, const xs_str *body, int b_size, int id); #ifdef XS_IMPLEMENTATION @@ -290,7 +290,7 @@ end: } -void xs_fcgi_response(FILE *f, int status, xs_dict *headers, xs_str *body, int b_size, int fcgi_id) +void xs_fcgi_response(FILE *f, int status, const xs_dict *headers, const xs_str *body, int b_size, int fcgi_id) /* writes an FCGI response */ { struct fcgi_record_header hdr = {0}; -- cgit v1.2.3