# HG changeset patch # User Paper # Date 1721014063 14400 # Node ID 2f094656e775a185b6982f78659b7e41b085541b # Parent a0e96f50bcce76fb106d3f294667eaf44aeee725 sys/x11/settings: misc fixups diff -r a0e96f50bcce -r 2f094656e775 src/sys/x11/settings.cc --- a/src/sys/x11/settings.cc Sun Jul 14 23:24:19 2024 -0400 +++ b/src/sys/x11/settings.cc Sun Jul 14 23:27:43 2024 -0400 @@ -93,7 +93,7 @@ std::size_t size_ = 0; /* parsed in the constructor */ - std::uint8_t byte_order_ = 0; /* unused */ + std::uint8_t byte_order_ = 0; std::uint32_t serial_ = 0; std::uint32_t total_items_ = 0; }; @@ -123,17 +123,15 @@ bytes_ = bytes; size_ = size; - /* unused for now... don't know what the values are! :) - * assuming host byte order */ if (!ReadData(byte_order_)) return; Advance(3); - if (!ReadData(serial_)) + if (!ReadInt(serial_)) return; - if (!ReadData(total_items_)) + if (!ReadInt(total_items_)) return; }