X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/5fca0fe6cdbe90d31cce2ef17c1d76a8cfe0f921..6e7d67bed9f4d76943e2f1724acff1e16b8bf7ac:/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;