From f315b3d9182846807627732c6e0d7e55cc8c334f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 29 May 2016 08:24:06 -0700 Subject: Turn flags in struct stdio_handle into bitfields. * stream.c (struct stdio_handle): Members is_rotated, is_real_time and is_byte_oriented become bitfields. --- stream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stream.c b/stream.c index 08bc8c90..535396ea 100644 --- a/stream.c +++ b/stream.c @@ -371,9 +371,9 @@ struct stdio_handle { int pid; #endif val mode; /* used by tail */ - unsigned is_rotated; /* used by tail */ - unsigned is_real_time; - unsigned is_byte_oriented; + unsigned is_rotated : 8; /* used by tail */ + unsigned is_real_time : 8; + unsigned is_byte_oriented : 8; #if CONFIG_STDIO_STRICT enum stdio_op last_op; #endif -- cgit v1.2.3