zephyr: replace zephyr integer types with C99 types

git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-05-27 11:26:57 -05:00 committed by Kumar Gala
commit a1b77fd589
2364 changed files with 32505 additions and 32505 deletions

View file

@ -60,9 +60,9 @@
#define SHELL_DEFAULT_TERMINAL_HEIGHT 24
/* Function reads cursor position from terminal. */
static int cursor_position_get(const struct shell *shell, u16_t *x, u16_t *y)
static int cursor_position_get(const struct shell *shell, uint16_t *x, uint16_t *y)
{
u16_t buff_idx = 0U;
uint16_t buff_idx = 0U;
size_t cnt;
char c = 0;
@ -82,7 +82,7 @@ static int cursor_position_get(const struct shell *shell, u16_t *x, u16_t *y)
transport_buffer_flush(shell);
/* timeout for terminal response = ~1s */
for (u16_t i = 0; i < 1000; i++) {
for (uint16_t i = 0; i < 1000; i++) {
do {
(void)shell->iface->api->read(shell->iface, &c,
sizeof(c), &cnt);
@ -167,8 +167,8 @@ static int cursor_position_get(const struct shell *shell, u16_t *x, u16_t *y)
/* Function gets terminal width and height. */
static int terminal_size_get(const struct shell *shell)
{
u16_t x; /* horizontal position */
u16_t y; /* vertical position */
uint16_t x; /* horizontal position */
uint16_t y; /* vertical position */
int ret_val = 0;
cursor_save(shell);
@ -304,7 +304,7 @@ static int cmd_history(const struct shell *shell, size_t argc, char **argv)
ARG_UNUSED(argv);
size_t i = 0;
u16_t len;
uint16_t len;
while (1) {
shell_history_get(shell->history, true,