changeset 353:2f094656e775

sys/x11/settings: misc fixups
author Paper <paper@paper.us.eu.org>
date Sun, 14 Jul 2024 23:27:43 -0400
parents a0e96f50bcce
children 9aaf1e788896
files src/sys/x11/settings.cc
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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<std::uint8_t>(byte_order_))
 		return;
 
 	Advance(3);
 
-	if (!ReadData<std::uint32_t>(serial_))
+	if (!ReadInt<std::uint32_t>(serial_))
 		return;
 
-	if (!ReadData<std::uint32_t>(total_items_))
+	if (!ReadInt<std::uint32_t>(total_items_))
 		return;
 }