From 10f39ddd92d55afbd8f7ef3607ce1c706fe19102 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 19 Dec 2009 22:33:23 +0000 Subject: [PATCH] Use a u8 instead of int for Port::state. This allows better struct packing and reduces the size of objects by 4 bytes. --- portlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portlist.h b/portlist.h index af2150537..8985a49a7 100644 --- a/portlist.h +++ b/portlist.h @@ -182,7 +182,7 @@ class Port { u16 portno; u8 proto; - int state; + u8 state; state_reason_t reason; #ifndef NOLUA