aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_response_status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtipidee/tipidee_response_status.c')
-rw-r--r--src/libtipidee/tipidee_response_status.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libtipidee/tipidee_response_status.c b/src/libtipidee/tipidee_response_status.c
index aedec39..4315f61 100644
--- a/src/libtipidee/tipidee_response_status.c
+++ b/src/libtipidee/tipidee_response_status.c
@@ -14,13 +14,8 @@ 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, rql->http_major ? rql->http_minor : 1)) ;
n += buffer_putnoflush(b, " ", 1) ;
- if (status)
- {
- char fmt[UINT_FMT] ;
- size_t m = uint_fmt(fmt, status) ;
- n += buffer_putnoflush(b, fmt, m) ;
- 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_putnoflush(b, "\r\n", 2) ;
return n ;