From 15626ed816a937f029a09ad0dd368bd0cccb4a2b Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Thu, 2 Apr 2009 20:31:17 +0200 Subject: [PATCH] hdt: cursor pos must be uint Impact: Prevent warning while comparing with strlen() & co. Cursor pos is usually compared with string pos, so it must be an uint --- com32/hdt/hdt-cli.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index d5d47ab..0b15fe9 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -87,7 +87,7 @@ struct s_cli { cli_mode_t mode; char prompt[PROMPT_SIZE]; char input[MAX_LINE_SIZE]; - int cursor_pos; + uint8_t cursor_pos; char history[MAX_HISTORY_SIZE][MAX_LINE_SIZE]; int history_pos; int max_history_pos; -- 2.7.4