]> git.ipfire.org Git - thirdparty/grub.git/commit
net/http: Fix gcc-13 errors relating to type signedness
authorMate Kukri <mate.kukri@canonical.com>
Wed, 29 Nov 2023 19:58:25 +0000 (19:58 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 5 Dec 2023 14:55:10 +0000 (15:55 +0100)
commit069cc46c9648669fc1f76a719e1526adc3fdb6c6
treed98ca288429e97153e1ff7dce4619e6ce5c201e7
parente7a831963e30c6d9c61027a97e50388856c68d03
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 <mate.kukri@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com
grub-core/net/http.c