]> git.refcnt.org Git - colorize.git/commitdiff
Bring data type into line
authorSteven Schubiger <stsc@refcnt.org>
Sat, 28 Nov 2015 20:32:49 +0000 (21:32 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sat, 28 Nov 2015 20:32:49 +0000 (21:32 +0100)
colorize.c

index a6bd56d7e2e740f76ab5abccc15c94c238342d67..fc23d8bd720411c92383f64039235a6a6b308f8e 100644 (file)
@@ -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)
       {