aboutsummaryrefslogtreecommitdiff
path: root/src/ib-brightness-control.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-18 21:33:19 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-07-18 21:33:19 +0000
commit512426b01bfa72a3c0d21b1ffbefd46bd7ebe306 (patch)
treee897bb966a0530f67fb9cfd74e8cc391d6748e8b /src/ib-brightness-control.c
parent2d06cbb066f9ae0a0a49d5d260ebe28bb17311fc (diff)
parent9f1ebe8f6c412ab18bdf32bf949fc00152d9671b (diff)
downloadayatana-indicator-power-512426b01bfa72a3c0d21b1ffbefd46bd7ebe306.tar.gz
ayatana-indicator-power-512426b01bfa72a3c0d21b1ffbefd46bd7ebe306.tar.bz2
ayatana-indicator-power-512426b01bfa72a3c0d21b1ffbefd46bd7ebe306.zip
Switch from automake/autoconf to CMake.
Approved by: Ted Gould, PS Jenkins bot
Diffstat (limited to 'src/ib-brightness-control.c')
-rw-r--r--src/ib-brightness-control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ib-brightness-control.c b/src/ib-brightness-control.c
index 4fb6bc5..67da10c 100644
--- a/src/ib-brightness-control.c
+++ b/src/ib-brightness-control.c
@@ -76,7 +76,7 @@ ib_brightness_control_set_value (IbBrightnessControl* self, gint value)
gint fd;
gchar *filename;
gchar *svalue;
- gint length;
+ size_t length;
gint err;
if (self->path == NULL)
@@ -95,7 +95,7 @@ ib_brightness_control_set_value (IbBrightnessControl* self, gint value)
err = errno;
errno = 0;
- if (write (fd, svalue, length) != length) {
+ if (write (fd, svalue, length) != (ssize_t)length) {
g_warning ("Fail to write brightness information: %s", g_strerror(errno));
}
errno = err;
@@ -105,7 +105,7 @@ ib_brightness_control_set_value (IbBrightnessControl* self, gint value)
g_free (filename);
}
-gint
+static gint
ib_brightness_control_get_value_from_file (IbBrightnessControl *self, const gchar *file)
{
GError *error;