From 05ed8042cbb3ecd5b5cc5fbdac32428985809c01 Mon Sep 17 00:00:00 2001
From: Rui Matos <tiagomatos@gmail.com>
Date: Mon, 23 Oct 2017 15:12:22 +0200
Subject: [PATCH 2/2] display/night-light-widget: Avoid c99 requirement
---
panels/display/cc-night-light-widget.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/panels/display/cc-night-light-widget.c b/panels/display/cc-night-light-widget.c
index 8b5d60024..683fd966b 100644
--- a/panels/display/cc-night-light-widget.c
+++ b/panels/display/cc-night-light-widget.c
@@ -278,8 +278,9 @@ cc_night_light_widget_draw (GtkWidget *widget, cairo_t *cr)
gdouble subsect = 24.f / (gdouble) rect.width;
if (gtk_widget_is_sensitive (widget))
{
+ guint x;
cairo_set_line_width (cr, 1);
- for (guint x = 0; x < rect.width; x += 1)
+ for (x = 0; x < rect.width; x += 1)
{
gdouble frac_hour = subsect * x;
if (is_frac_day_between (frac_hour, self->to - 1, self->to))
--
2.13.6