Use 'restrict' on pointer arguments to all compress() and decompress() functions
[wimlib] / src / lzms_compress.c
index 385fa0502294b05f29a7eb7fc4113f1349fb4739..f438e91cd15156f48e8371f3bf5f1cc6aa044413 100644 (file)
@@ -2166,8 +2166,8 @@ oom0:
 }
 
 static size_t
-lzms_compress(const void *in, size_t in_nbytes,
-             void *out, size_t out_nbytes_avail, void *_c)
+lzms_compress(const void *restrict in, size_t in_nbytes,
+             void *restrict out, size_t out_nbytes_avail, void *restrict _c)
 {
        struct lzms_compressor *c = _c;
        size_t result;