Merge tag 'upstream/1.2.0'
[psensor-pkg-debian.git] / src / ui_status.c
index 60814d6..22ba5c0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2014 jeanfi@gmail.com
+ * Copyright (C) 2010-2016 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -23,7 +23,7 @@ static const char *ICON = "psensor_normal";
 static const char *ATTENTION_ICON = "psensor_hot";
 
 static GtkStatusIcon *status;
-static unsigned status_attention;
+static unsigned int status_attention;
 
 static void cb_activate(GtkStatusIcon *icon,
                        gpointer data)
@@ -43,7 +43,7 @@ static void cb_popup_menu(GtkStatusIcon *icon,
 void ui_status_init(struct ui_psensor *ui)
 {
        if (status)
-               return ;
+               return;
 
        log_debug("ui_status_create()");
 
@@ -62,12 +62,12 @@ void ui_status_init(struct ui_psensor *ui)
                         ui);
 }
 
-int is_status_supported()
+int is_status_supported(void)
 {
        return status && gtk_status_icon_is_embedded(status);
 }
 
-void ui_status_cleanup()
+void ui_status_cleanup(void)
 {
        log_debug("ui_status_cleanup()");