net/port.h: default constructor

Adds default constructor to Net::Port that initializes the value to 0. This
allows for using Net::Port with the Genode::Attempt utility.

Ref #4729
This commit is contained in:
Martin Stein 2024-05-21 11:15:28 +02:00 committed by Norman Feske
parent 25717df15f
commit 0faec6afaa

View File

@ -30,7 +30,9 @@ namespace Net {
*/
struct Net::Port
{
Genode::uint16_t value;
Genode::uint16_t value { 0UL };
Port() { }
explicit Port(Genode::uint16_t const value) : value(value) { }