diff options
author | Alex James <theracermaster@gmail.com> | 2018-12-17 20:25:12 -0800 |
---|---|---|
committer | Jaben Carsey <jaben.carsey@intel.com> | 2019-01-02 11:26:07 -0800 |
commit | 5f5c60cc2d427cd953719dea9c57456a5d94d4ea (patch) | |
tree | ca2dd00c6a45e3da51113240c9cc52b7118bce69 /StdLib | |
parent | ada4a003f9e42c27ce6c6cdad74157b8ec4c13ec (diff) | |
download | edk2-5f5c60cc2d427cd953719dea9c57456a5d94d4ea.tar.gz edk2-5f5c60cc2d427cd953719dea9c57456a5d94d4ea.tar.bz2 edk2-5f5c60cc2d427cd953719dea9c57456a5d94d4ea.zip |
StdLib/sys/termios: Define cc_t as unsigned
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>
Diffstat (limited to 'StdLib')
-rw-r--r-- | StdLib/Include/sys/termios.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StdLib/Include/sys/termios.h b/StdLib/Include/sys/termios.h index 75886065b7..f2d60d0025 100644 --- a/StdLib/Include/sys/termios.h +++ b/StdLib/Include/sys/termios.h @@ -152,7 +152,7 @@ typedef enum { #define NOFLSH 0x0800 /* don't flush output on signal */
#define FLUSHO 0x1000 /* output being flushed (state) */
-typedef INT8 cc_t;
+typedef UINT8 cc_t;
typedef UINT16 tcflag_t;
typedef UINT32 speed_t;
|