summaryrefslogtreecommitdiff
path: root/package/cfgfs/src/c_zlib.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-01-08 19:17:42 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2025-01-09 11:19:01 +0100
commit6854b5655a4dbc71a19b25f7226b559f6eba6365 (patch)
tree4b70f80afc571c11c9d78ca3483f93ec0f6c4265 /package/cfgfs/src/c_zlib.c
parent65644d7bfae8058a786d15c5e84d7d7770343c5e (diff)
package: cfgfs: Fix for ignored attribute warnings
The 'bounded' attribute seems to never have existed. Replace it by the 'access' attribute which probably does the same. Declare decompressors' 'dst' parameter as read_write for now, no idea if any of them reads back the written output while decompressing. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'package/cfgfs/src/c_zlib.c')
-rw-r--r--package/cfgfs/src/c_zlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/cfgfs/src/c_zlib.c b/package/cfgfs/src/c_zlib.c
index 2285f2eeb..65245d507 100644
--- a/package/cfgfs/src/c_zlib.c
+++ b/package/cfgfs/src/c_zlib.c
@@ -34,10 +34,10 @@ __RCSID("$MirOS: contrib/hosted/fwcf/c_zlib.c,v 1.4 2006/09/23 23:46:35 tg Exp $
static void c_zlib_load(void) __attribute__((constructor));
static int c_init(void);
static int c_compress(char **, char *, size_t)
- __attribute__((bounded (string, 2, 3)));
+ __attribute__((access (read_only, 2, 3)));
static int c_decompress(char *, size_t, char *, size_t)
- __attribute__((bounded (string, 1, 2)))
- __attribute__((bounded (string, 3, 4)));
+ __attribute__((access (read_write, 1, 2)))
+ __attribute__((access (read_only, 3, 4)));
static fwcf_compressor c_zlib = {
c_init, /* init */