Commit 8ee159a4 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Aurelio Colosimo

ieee1588_types.h: Octet is better uint8_t than char

char may be signed or unsigned, so I'd better be safe here.
Meanwhile, I added some tabs to better line up the typedef stanza.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f1dbdca0
...@@ -10,19 +10,19 @@ ...@@ -10,19 +10,19 @@
typedef enum {FALSE=0, TRUE} Boolean; /* FIXME really needed? */ typedef enum {FALSE=0, TRUE} Boolean; /* FIXME really needed? */
typedef char Octet; typedef uint8_t Octet;
typedef int8_t Integer8; typedef int8_t Integer8;
typedef int16_t Integer16; typedef int16_t Integer16;
typedef int32_t Integer32; typedef int32_t Integer32;
typedef uint8_t UInteger8; typedef uint8_t UInteger8;
typedef uint16_t UInteger16; typedef uint16_t UInteger16;
typedef uint32_t UInteger32; typedef uint32_t UInteger32;
/* Enumerations are unsigned, see 5.4.2, page 15 */ /* Enumerations are unsigned, see 5.4.2, page 15 */
typedef uint16_t Enumeration16; typedef uint16_t Enumeration16;
typedef uint8_t Enumeration8; typedef uint8_t Enumeration8;
typedef uint8_t Enumeration4; typedef uint8_t Enumeration4;
typedef uint8_t UInteger4; typedef uint8_t UInteger4;
typedef uint8_t Nibble; typedef uint8_t Nibble;
#define PP_CLOCK_IDENTITY_LENGTH 8 #define PP_CLOCK_IDENTITY_LENGTH 8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment