]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StdLib/sys/termios: Define cc_t as unsigned
authorAlex James <theracermaster@gmail.com>
Tue, 18 Dec 2018 04:25:12 +0000 (20:25 -0800)
committerJaben Carsey <jaben.carsey@intel.com>
Wed, 2 Jan 2019 19:26:07 +0000 (11:26 -0800)
According to the POSIX standard, cc_t, speed_t, and tcflag_t should be
unsigned integer types. Define cc_t as unsigned to match POSIX and fix
an implicit conversion error when building StdLib with XCODE5/CLANG38.

Cc: Daryl McDaniel <edk2-lists@mc2research.org>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Alex James <theracermaster@gmail.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
StdLib/Include/sys/termios.h

index 75886065b7744c3b1d9f9dcfbf54e394d22e2956..f2d60d002524a129aa0c37d72ff053df42c3ebe6 100644 (file)
@@ -152,7 +152,7 @@ typedef enum {
 #define NOFLSH    0x0800    /* don't flush output on signal */\r
 #define FLUSHO    0x1000    /* output being flushed (state) */\r
 \r
-typedef INT8    cc_t;\r
+typedef UINT8   cc_t;\r
 typedef UINT16  tcflag_t;\r
 typedef UINT32  speed_t;\r
 \r