From 069cc46c9648669fc1f76a719e1526adc3fdb6c6 Mon Sep 17 00:00:00 2001 From: Mate Kukri Date: Wed, 29 Nov 2023 19:58:25 +0000 Subject: [PATCH] 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