diff options
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -217,7 +217,7 @@ static void read_print_stream (bool, const struct color **, const char *, FILE * static void merge_print_line (bool, const struct color **, const char *, const char *, FILE *); static void complete_part_line (const char *, char **, FILE *); static bool get_next_char (char *, const char **, FILE *, bool *); -static void save_char (char, char **, unsigned long *, size_t *); +static void save_char (char, char **, size_t *, size_t *); static void find_color_entries (struct color_name **, const struct color **); static void find_color_entry (const struct color_name *, unsigned int, const struct color **); static void print_line (bool, const struct color **, const char * const, unsigned int); @@ -808,8 +808,7 @@ complete_part_line (const char *p, char **buf, FILE *stream) { bool got_next_char = false, read_from_stream; char ch; - unsigned long i = 0; - size_t size; + size_t i = 0, size; if (get_next_char (&ch, &p, stream, &read_from_stream)) { @@ -888,7 +887,7 @@ get_next_char (char *ch, const char **p, FILE *stream, bool *read_from_stream) } static void -save_char (char ch, char **buf, unsigned long *i, size_t *size) +save_char (char ch, char **buf, size_t *i, size_t *size) { if (!*buf) { |