summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_response_status.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-18 13:07:23 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-18 13:07:23 +0000
commit1a7e3d00588725da3d8764fa9d624bc8611be070 (patch)
tree65d28b52bd1d4ccdbeb418d4d681b1999ed46b7a /src/libtipidee/tipidee_response_status.c
parent24fb88dbb023ae08adc9989bf19e0c6c569a6607 (diff)
downloadtipidee-1a7e3d00588725da3d8764fa9d624bc8611be070.tar.xz
Add infrastructure for custom error files
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_response_status.c')
-rw-r--r--src/libtipidee/tipidee_response_status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtipidee/tipidee_response_status.c b/src/libtipidee/tipidee_response_status.c
index 4315f61..3c8977a 100644
--- a/src/libtipidee/tipidee_response_status.c
+++ b/src/libtipidee/tipidee_response_status.c
@@ -5,7 +5,7 @@
#include <tipidee/response.h>
-size_t tipidee_response_status (buffer *b, tipidee_rql const *rql, unsigned int status, char const *line)
+size_t tipidee_response_status (buffer *b, tipidee_rql const *rql, unsigned int status, char const *reason)
{
size_t n = 0 ;
char fmt[UINT_FMT] ;
@@ -16,7 +16,7 @@ size_t tipidee_response_status (buffer *b, tipidee_rql const *rql, unsigned int
n += buffer_putnoflush(b, " ", 1) ;
n += buffer_putnoflush(b, fmt, uint_fmt(fmt, status)) ;
n += buffer_putnoflush(b, " ", 1) ;
- n += buffer_putsnoflush(b, line) ;
+ n += buffer_putsnoflush(b, reason) ;
n += buffer_putnoflush(b, "\r\n", 2) ;
return n ;
}