summaryrefslogtreecommitdiff
path: root/content/fs_backing_store.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-23 01:37:24 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-23 01:37:24 +0000
commit246a1fec0523346e9fdfb9b7d937cfbd947cd663 (patch)
tree547ba953a6cbd246db16ad24308ddc9ff5aa8f4a /content/fs_backing_store.c
parent63c35da66ed040df8c675ae9d86f4834e26980a3 (diff)
downloadnetsurf-246a1fec0523346e9fdfb9b7d937cfbd947cd663.tar.gz
netsurf-246a1fec0523346e9fdfb9b7d937cfbd947cd663.tar.bz2
remove constness from backing stores store method
Diffstat (limited to 'content/fs_backing_store.c')
-rw-r--r--content/fs_backing_store.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/content/fs_backing_store.c b/content/fs_backing_store.c
index 6686d77c9..29bb4cc8a 100644
--- a/content/fs_backing_store.c
+++ b/content/fs_backing_store.c
@@ -104,11 +104,11 @@ enum store_entry_elem_idx {
enum store_entry_elem_flags {
/** store not managing any allocation on entry */
ENTRY_ELEM_FLAG_NONE = 0,
- /** entry data allocation is on heap */
+ /** entry data allocation is on heap */
ENTRY_ELEM_FLAG_HEAP = 0x1,
- /** entry data allocation is mmaped */
+ /** entry data allocation is mmaped */
ENTRY_ELEM_FLAG_MMAP = 0x2,
- /** entry data allocation is in small object pool */
+ /** entry data allocation is in small object pool */
ENTRY_ELEM_FLAG_SMALL = 0x4,
};
@@ -130,7 +130,7 @@ struct store_entry_element {
} __attribute__((__packed__)) map;
struct {
uint16_t block; /**< small object data block */
- } __attribute__((__packed__)) small;
+ } __attribute__((__packed__)) sml;
} u ;
uint8_t flags; /* extension flags */
uint32_t size; /**< size of entry element on disc */
@@ -231,9 +231,9 @@ remove_store_entry(struct store_state *state,
}
/* check if the entry has storage already allocated */
- if (((state->entries[sei].elem[ENTRY_ELEM_DATA].flags &
+ if (((state->entries[sei].elem[ENTRY_ELEM_DATA].flags &
(ENTRY_ELEM_FLAG_HEAP | ENTRY_ELEM_FLAG_MMAP)) != 0) ||
- ((state->entries[sei].elem[ENTRY_ELEM_META].flags &
+ ((state->entries[sei].elem[ENTRY_ELEM_META].flags &
(ENTRY_ELEM_FLAG_HEAP | ENTRY_ELEM_FLAG_MMAP)) != 0)) {
/* this entry cannot be removed as it has associated
* allocation.
@@ -699,7 +699,7 @@ static nserror
set_store_entry(struct store_state *state,
nsurl *url,
enum backing_store_flags flags,
- const uint8_t *data,
+ uint8_t *data,
const size_t datalen,
struct store_entry **bse)
{
@@ -1263,7 +1263,7 @@ finalise(void)
static nserror
store(nsurl *url,
enum backing_store_flags flags,
- const uint8_t *data,
+ uint8_t *data,
const size_t datalen)
{
nserror ret;