X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/5d07f9f60e580dea0474905f66e00983223c540c..cd47643a141ee32ad929bfd81a9821adf9cf9715:/src/libupkg.c diff --git a/src/libupkg.c b/src/libupkg.c index 3ecce7f..5a9dce7 100644 --- a/src/libupkg.c +++ b/src/libupkg.c @@ -110,7 +110,7 @@ const struct upkg_file_ops upkg_default_fops = { * Stores the result in *val and returns the number of input bytes read (or 0 * if the input is invalid, in which case *val is undefined). */ -size_t upkg_decode_index(long *val, unsigned char *bytes, size_t n) +size_t upkg_decode_index(long *val, const unsigned char *bytes, size_t n) { *val = 0;