diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-11-23 16:19:57 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-11-23 19:27:09 +0100 |
commit | 905c8a48e96350af002536b627b46fbf517f727c (patch) | |
tree | dc73581b5393b4f5ea0101e420581206b86e0e4e /libqcdm/src/utils.h | |
parent | 944e34ecdb9028b68b2144dd2c6d698d508f1808 (diff) |
libqcdm,libwmc: use C99 sized types from stdint.h
Diffstat (limited to 'libqcdm/src/utils.h')
-rw-r--r-- | libqcdm/src/utils.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libqcdm/src/utils.h b/libqcdm/src/utils.h index 457c2e99..86b65b08 100644 --- a/libqcdm/src/utils.h +++ b/libqcdm/src/utils.h @@ -19,20 +19,20 @@ #define LIBQCDM_UTILS_H #include <config.h> -#include <sys/types.h> +#include <stdint.h> -typedef u_int8_t qcdmbool; +typedef uint8_t qcdmbool; #ifndef TRUE -#define TRUE ((u_int8_t) 1) +#define TRUE ((uint8_t) 1) #endif #ifndef FALSE -#define FALSE ((u_int8_t) 0) +#define FALSE ((uint8_t) 0) #endif #define DIAG_CONTROL_CHAR 0x7E #define DIAG_TRAILER_LEN 3 -u_int16_t dm_crc16 (const char *buffer, size_t len); +uint16_t dm_crc16 (const char *buffer, size_t len); size_t dm_escape (const char *inbuf, size_t inbuf_len, @@ -60,4 +60,3 @@ qcdmbool dm_decapsulate_buffer (const char *inbuf, qcdmbool *out_need_more); #endif /* LIBQCDM_UTILS_H */ - |