aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-11-28 21:32:49 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-11-28 21:32:49 +0100
commit26c918ce126949b27ab3586248cdfffb902dc586 (patch)
tree13996bde7b613b688fa43c89aa5f8bbece48e45a /colorize.c
parent0bb0226c45a302f5c06676818dd94ae7604d6c1b (diff)
downloadcolorize-26c918ce126949b27ab3586248cdfffb902dc586.tar.gz
colorize-26c918ce126949b27ab3586248cdfffb902dc586.tar.bz2
Bring data type into line
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/colorize.c b/colorize.c
index a6bd56d..fc23d8b 100644
--- a/colorize.c
+++ b/colorize.c
@@ -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)
{