commit retval
This commit is contained in:
parent
5ad409f23d
commit
79aa314352
3
simap.h
3
simap.h
@ -231,8 +231,9 @@ static inline void* simap(void *amap_instance, AMAP_OP op, const char *key, void
|
|||||||
simap_instance *map = (simap_instance *) amap_instance;
|
simap_instance *map = (simap_instance *) amap_instance;
|
||||||
|
|
||||||
if(op == AMAP_ERASE) {
|
if(op == AMAP_ERASE) {
|
||||||
|
map->prev_usage_end = (uint32_t) -1;
|
||||||
map->usage_end = 0;
|
map->usage_end = 0;
|
||||||
return NULL;
|
return (void *)((uint8_t)(NULL) - 1L);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Search for the key - also needed for SET in order to "re-set" */
|
/* Search for the key - also needed for SET in order to "re-set" */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user