frontend: fix all compiler warnings
This commit is contained in:
@@ -50,7 +50,7 @@ struct line_ed {
|
||||
char *l_line_end;
|
||||
/* 2-dimensional coordinates of the current cursor position.
|
||||
* this does NOT include any prompts that are visible on the terminal */
|
||||
unsigned int l_cursor_x, l_cursor_y;
|
||||
size_t l_cursor_x, l_cursor_y;
|
||||
/* the number of line continuations that have been inputted */
|
||||
unsigned int l_continuations;
|
||||
|
||||
@@ -67,7 +67,7 @@ struct line_ed {
|
||||
/* array of previously entered commands */
|
||||
b_array *l_history;
|
||||
/* index of the currently selected history entry */
|
||||
unsigned int l_history_pos;
|
||||
size_t l_history_pos;
|
||||
|
||||
/* list of defined highlight ranges */
|
||||
b_queue l_hl_ranges;
|
||||
@@ -89,7 +89,7 @@ extern void line_ed_print_highlights(struct line_ed *ed);
|
||||
extern void line_ed_add_hook(struct line_ed *ed, struct line_ed_hook *hook);
|
||||
extern void line_ed_remove_hook(struct line_ed *ed, struct line_ed_hook *hook);
|
||||
|
||||
extern long line_ed_readline(struct line_ed *ed, char *out, size_t max);
|
||||
extern size_t line_ed_readline(struct line_ed *ed, char *out, size_t max);
|
||||
|
||||
static inline struct ivy_line_source *line_ed_to_line_source(struct line_ed *ed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user