diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-06 10:30:52 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-06 10:30:52 +0100 |
commit | ee69f8aa5e0697aaeee9c00839fb7b30fe7e3184 (patch) | |
tree | b66f80d56314bfe286c71a0c89f5fe86b834b370 /util/cairo-trace | |
parent | 6d30021d65aa4126cd5eef47b0e6057dfc17d7ac (diff) |
[trace] Whitespace
A few gratuitous whitespace and increase the buffer size used whilst
reading in data files.
Diffstat (limited to 'util/cairo-trace')
-rw-r--r-- | util/cairo-trace/trace.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 5ab8cc85..fbcb3d76 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -1217,17 +1217,13 @@ _write_base85_data (struct _data_stream *stream, const unsigned char *data, unsigned int length) { - const unsigned char *ptr = data; unsigned char five_tuple[5]; - bool is_zero; int ret; while (length--) { - stream->four_tuple[stream->base85_pending++] = *ptr++; + stream->four_tuple[stream->base85_pending++] = *data++; if (stream->base85_pending == 4) { - is_zero = _expand_four_tuple_to_five (stream->four_tuple, - five_tuple); - if (is_zero) + if (_expand_four_tuple_to_five (stream->four_tuple, five_tuple)) ret = fwrite ("z", 1, 1, logfile); else ret = fwrite (five_tuple, 5, 1, logfile); @@ -3645,13 +3641,13 @@ cairo_ft_font_face_create_for_ft_face (FT_Face face, int load_flags) static bool _ft_read_file (FtFaceData *data, const char *path) { - char buf[4096]; + char buf[8192]; FILE *file; file = fopen (path, "rb"); if (file != NULL) { size_t ret; - unsigned long int allocated = 8192; + unsigned long int allocated = sizeof (buf); data->data = malloc (allocated); do { ret = fread (buf, 1, sizeof (buf), file); |