mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
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:
parent
25717df15f
commit
0faec6afaa
@ -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) { }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user