os: avoid warning in ethernet.h

issued by clang/llvm static analyzer
This commit is contained in:
Alexander Boettcher 2018-10-30 09:04:08 +01:00 committed by Norman Feske
parent aa03c4ce9f
commit dbeb1b82a9

View File

@ -158,7 +158,7 @@ class Net::Ethernet_frame_sized : public Ethernet_frame
Ethernet_frame_sized(Mac_address dst_in, Mac_address src_in,
Type type_in)
:
Ethernet_frame(sizeof(Ethernet_frame))
Ethernet_frame()
{
dst(dst_in);
src(src_in);