[Xfce4-commits] <xfce4-datetime-plugin:master> Fix compiler warnings
Diego Ongaro
noreply at xfce.org
Sun Oct 18 02:26:01 CEST 2009
Updating branch refs/heads/master
to 2eab8fee14251bdff4ba45d0f9cfe576ada33693 (commit)
from 47b27be42f5e6874bd864e3516aac2e6d59c31dc (commit)
commit 2eab8fee14251bdff4ba45d0f9cfe576ada33693
Author: Diego Ongaro <ongardie at gmail.com>
Date: Sat Oct 17 15:53:00 2009 -0700
Fix compiler warnings
panel-plugin/datetime-dialog.c | 2 +-
panel-plugin/datetime.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/datetime-dialog.c b/panel-plugin/datetime-dialog.c
index 1bb072b..193587e 100644
--- a/panel-plugin/datetime-dialog.c
+++ b/panel-plugin/datetime-dialog.c
@@ -347,7 +347,7 @@ datetime_dialog_response(GtkWidget *dlg, int response, t_datetime *dt)
void
datetime_properties_dialog(XfcePanelPlugin *plugin, t_datetime * datetime)
{
- gint i;
+ guint i;
gchar *str;
struct tm *exampletm = gmtime(&example_time_t);
GtkWidget *dlg,
diff --git a/panel-plugin/datetime.c b/panel-plugin/datetime.c
index 49a2278..30ee04a 100644
--- a/panel-plugin/datetime.c
+++ b/panel-plugin/datetime.c
@@ -395,7 +395,7 @@ static void datetime_set_update_interval(t_datetime *datetime)
*/
void datetime_apply_layout(t_datetime *datetime, t_layout layout)
{
- if(0 <= layout && layout < LAYOUT_COUNT)
+ if(layout < LAYOUT_COUNT)
{
datetime->layout = layout;
}
More information about the Xfce4-commits
mailing list