| 84 | } |
| 85 | |
| 86 | bool storage_write_back(struct storage_t *storage) |
| 87 | { |
| 88 | assert(storage->rw && "Only RW storage can be updated."); |
| 89 | |
| 90 | bool success = vs_store(&storage->vs, storage->store_area); |
| 91 | if (!success) |
| 92 | fprintf(stderr, "Failed to update variable store\n"); |
| 93 | storage_drop(storage); |
| 94 | return success; |
| 95 | } |
| 96 | |
| 97 | void storage_drop(struct storage_t *storage) |
| 98 | { |
no test coverage detected