From: claudio Date: Mon, 15 Aug 2022 12:29:17 +0000 (+0000) Subject: Neither clt_descreq nor clt_descresp in struct client need to be void *. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=873b6565257af9a97824d6486fa512fe63328cb4;p=openbsd Neither clt_descreq nor clt_descresp in struct client need to be void *. They both are only used as struct http_descriptor. OK tb@ --- diff --git a/usr.sbin/httpd/httpd.h b/usr.sbin/httpd/httpd.h index 50ee022dc34..17fba2b4188 100644 --- a/usr.sbin/httpd/httpd.h +++ b/usr.sbin/httpd/httpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: httpd.h,v 1.160 2022/03/02 11:10:43 florian Exp $ */ +/* $OpenBSD: httpd.h,v 1.161 2022/08/15 12:29:17 claudio Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter @@ -332,8 +332,8 @@ struct client { struct bufferevent *clt_bev; struct evbuffer *clt_output; struct event clt_ev; - void *clt_descreq; - void *clt_descresp; + struct http_descriptor *clt_descreq; + struct http_descriptor *clt_descresp; int clt_sndbufsiz; uint64_t clt_boundary; diff --git a/usr.sbin/httpd/server_fcgi.c b/usr.sbin/httpd/server_fcgi.c index 2e5e647cb9c..073ab344079 100644 --- a/usr.sbin/httpd/server_fcgi.c +++ b/usr.sbin/httpd/server_fcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_fcgi.c,v 1.94 2022/08/15 10:29:03 claudio Exp $ */ +/* $OpenBSD: server_fcgi.c,v 1.95 2022/08/15 12:29:17 claudio Exp $ */ /* * Copyright (c) 2014 Florian Obser @@ -581,8 +581,7 @@ server_fcgi_read(struct bufferevent *bev, void *arg) } /* Don't send content for HEAD requests */ if (clt->clt_fcgi.headerssent && - ((struct http_descriptor *) - clt->clt_descreq)->http_method + clt->clt_descreq->http_method == HTTP_METHOD_HEAD) /* nothing */ ; else if (server_fcgi_writechunk(clt) == -1) {