aboutsummaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-13 09:16:54 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-13 09:16:54 -0500
commita49c013fd0340bc4e6f8bb9dd6f4b7efdb20994a (patch)
tree385f818d5b007350870a45dbffa5a6d05a012608 /src/device.c
parent3c4a789e9607a312d7230b797d875f9dab02d2d1 (diff)
downloadayatana-indicator-power-a49c013fd0340bc4e6f8bb9dd6f4b7efdb20994a.tar.gz
ayatana-indicator-power-a49c013fd0340bc4e6f8bb9dd6f4b7efdb20994a.tar.bz2
ayatana-indicator-power-a49c013fd0340bc4e6f8bb9dd6f4b7efdb20994a.zip
copyediting: add const, fix misaligned whitespace
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index d07f6c5..854dbfb 100644
--- a/src/device.c
+++ b/src/device.c
@@ -552,7 +552,7 @@ get_brief_time_remaining (const IndicatorPowerDevice * device)
if (p->time > 0)
{
int minutes = p->time / 60;
- int hours = minutes / 60;
+ const int hours = minutes / 60;
minutes %= 60;
str = g_strdup_printf("%0d:%02d", hours, minutes);
@@ -604,7 +604,7 @@ get_expanded_time_remaining (const IndicatorPowerDevice * device)
}
else
{
- str = get_brief_time_remaining (device);
+ str = get_brief_time_remaining (device);
}
return str;