]> git.draconx.ca Git - upkg.git/blobdiff - src/libupkg.c
libupkg: Add const qualifier to upkg_decode_index input buffer.
[upkg.git] / src / libupkg.c
index 3ecce7fbbd50c934e090a959950b590e937abec6..5a9dce7f29ad0d8ec6936827f01b5181d6d89c67 100644 (file)
@@ -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;