diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-05-05 22:46:40 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-05-05 22:50:25 +0100 |
commit | 35bc2ccbb89a6b499e0e3b6f7095afea214f0c59 (patch) | |
tree | cd494ae1e33ab55d0e644d11eb973ddde4decbb6 /content/handlers/image/webp.c | |
parent | f966580d22d47ab97bceb2f067fc2b9402af01b7 (diff) | |
download | netsurf-35bc2ccbb89a6b499e0e3b6f7095afea214f0c59.tar.gz netsurf-35bc2ccbb89a6b499e0e3b6f7095afea214f0c59.tar.bz2 |
change content get_source_data interfaces to return uint8_t and size_t
previously these interfaces returned char * and unsigned int which was
undesirable.
Diffstat (limited to 'content/handlers/image/webp.c')
-rw-r--r-- | content/handlers/image/webp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/handlers/image/webp.c b/content/handlers/image/webp.c index 66a86c9f4..cbcb5ce55 100644 --- a/content/handlers/image/webp.c +++ b/content/handlers/image/webp.c @@ -88,7 +88,7 @@ static struct bitmap * webp_cache_convert(struct content *c) { const uint8_t *source_data; /* webp source data */ - unsigned long source_size; /* length of webp source data */ + size_t source_size; /* length of webp source data */ VP8StatusCode webpres; WebPBitstreamFeatures webpfeatures; unsigned int bmap_flags; @@ -97,7 +97,7 @@ webp_cache_convert(struct content *c) size_t rowstride; struct bitmap *bitmap = NULL; - source_data = (uint8_t *)content__get_source_data(c, &source_size); + source_data = content__get_source_data(c, &source_size); webpres = WebPGetFeatures(source_data, source_size, &webpfeatures); @@ -156,12 +156,12 @@ webp_cache_convert(struct content *c) static bool webp_convert(struct content *c) { int res; - unsigned long data_size; const uint8_t* data; + size_t data_size; int width; int height; - data = (uint8_t *)content__get_source_data(c, &data_size); + data = content__get_source_data(c, &data_size); res = WebPGetInfo(data, data_size, &width, &height); if (res == 0) { |