void DontDeleteThis(void *Data){};
-#define IconbarIsEnabled(a, b) IconbarIsENABLED(a, sizeof(a), b)
+#define IconbarIsEnabled(a, b) IconbarIsENABLED(a, sizeof(a) - 1, b)
long IconbarIsENABLED(const char *key, size_t keylen, long defval)
{
static char nbuf[32];
inline const char *PrintInt(void *Prefstr)
{
- snprintf(nbuf, sizeof(nbuf), "%ld", Prefstr);
+ snprintf(nbuf, sizeof(nbuf), "%ld", (long)Prefstr);
return nbuf;
}
void LoadIconSettings(void)
{
struct wcsession *WCC = WC;
- StrBuf *iconbar;
+ StrBuf *iconbar = NULL;
StrBuf *buf = NewStrBuf();;
StrBuf *key = NewStrBuf();
long val;
* \brief draw the icon bar???
*/
void do_iconbar(void) {
- int ib_displayas = 0; /**< pictures and text, pictures, text */
+ int ib_displayas = IB_PICTEXT; /**< pictures and text, pictures, text */
LoadIconSettings();
- ib_displayas = IconbarIsEnabled("ib_displayas", 0);
+ ib_displayas = IconbarIsEnabled("ib_displayas", IB_PICTEXT);
/** Site logo */
if (IconbarIsEnabled("ib_logo", 0)) {
LoadIconSettings();
- ib_displayas = IconbarIsEnabled("ib_displayas", 0); /* pictures and text, pictures, text */
+ ib_displayas = IconbarIsEnabled("ib_displayas", IB_PICTEXT); /* pictures and text, pictures, text */
/** Site logo */
if (IconbarIsEnabled("ib_logo", 0)) {