summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 179218ab1f..191c245597 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -153,7 +153,7 @@ struct ramcache_header {
153 int entry_count[TAG_COUNT]; /* Number of entries in the indices. */ 153 int entry_count[TAG_COUNT]; /* Number of entries in the indices. */
154}; 154};
155 155
156# ifdef HAVE_EEPROM 156# ifdef HAVE_EEPROM_SETTINGS
157struct statefile_header { 157struct statefile_header {
158 struct ramcache_header *hdr; 158 struct ramcache_header *hdr;
159 struct tagcache_stat stat; 159 struct tagcache_stat stat;
@@ -2829,7 +2829,7 @@ static bool allocate_tagcache(void)
2829 return true; 2829 return true;
2830} 2830}
2831 2831
2832# ifdef HAVE_EEPROM 2832# ifdef HAVE_EEPROM_SETTINGS
2833static bool tagcache_dumpload(void) 2833static bool tagcache_dumpload(void)
2834{ 2834{
2835 struct statefile_header shdr; 2835 struct statefile_header shdr;
@@ -3370,7 +3370,7 @@ static void tagcache_thread(void)
3370 free_tempbuf(); 3370 free_tempbuf();
3371 3371
3372#ifdef HAVE_TC_RAMCACHE 3372#ifdef HAVE_TC_RAMCACHE
3373# ifdef HAVE_EEPROM 3373# ifdef HAVE_EEPROM_SETTINGS
3374 if (firmware_settings.initialized && firmware_settings.disk_clean) 3374 if (firmware_settings.initialized && firmware_settings.disk_clean)
3375 check_done = tagcache_dumpload(); 3375 check_done = tagcache_dumpload();
3376 3376
@@ -3462,7 +3462,7 @@ bool tagcache_prepare_shutdown(void)
3462 if (tagcache_get_commit_step() > 0) 3462 if (tagcache_get_commit_step() > 0)
3463 return false; 3463 return false;
3464 3464
3465#ifdef HAVE_EEPROM 3465#ifdef HAVE_EEPROM_SETTINGS
3466 if (stat.ramcache) 3466 if (stat.ramcache)
3467 tagcache_dumpsave(); 3467 tagcache_dumpsave();
3468#endif 3468#endif