From: Mate Kukri Date: Wed, 29 Nov 2023 19:58:25 +0000 (+0000) Subject: net/http: Fix gcc-13 errors relating to type signedness X-Git-Tag: grub-2.12~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=069cc46c9648669fc1f76a719e1526adc3fdb6c6;p=thirdparty%2Fgrub.git net/http: Fix gcc-13 errors relating to type signedness Replace definition of HTTP_PORT with a pre-processor macro that converts the constant to the correct grub_uint16_t type. Change "port" local variable definition in http_establish() to have the same type. Signed-off-by: Mate Kukri Reviewed-by: Daniel Kiper device->net->server; - int port = file->device->net->port; + grub_uint16_t port = file->device->net->port; nb = grub_netbuff_alloc (GRUB_NET_TCP_RESERVE_SIZE + sizeof ("GET ") - 1