]> code.citadel.org Git - citadel.git/blobdiff - webcit/iconbar.c
* migrate bstr backend to strbuf
[citadel.git] / webcit / iconbar.c
index bbc0b9f3115c4ca44051169eed806db258cb28b8..665272c7b8faf28f347a9bd24a9cf100a8bb313a 100644 (file)
@@ -42,12 +42,14 @@ long IconbarIsENABLED(const char *key, size_t keylen, long defval)
                return defval;
 }
 
+#ifdef DBG_ICONBAR_HASH
 static char nbuf[32];
 inline const char *PrintInt(void *Prefstr)
 {
        snprintf(nbuf, sizeof(nbuf), "%ld", (long)Prefstr);
        return nbuf;
 }
+#endif
 
 void LoadIconSettings(void)
 {
@@ -79,7 +81,10 @@ void LoadIconSettings(void)
                            (void*)val, DontDeleteThis);
                }
        }
+
+#ifdef DBG_ICONBAR_HASH
        dbg_PrintHash(WCC->IconBarSetttings, PrintInt, NULL);
+#endif
 
        FreeStrBuf(&key);
        FreeStrBuf(&buf);
@@ -792,7 +797,9 @@ void commit_iconbar(void) {
                "choices to continue."));
        wprintf("</td></tr></table>\n");
        wDumpContent(2);
+#ifdef DBG_ICONBAR_HASH
        dbg_PrintHash(WC->IconBarSetttings, PrintInt, NULL);
+#endif
 }