aboutsummaryrefslogtreecommitdiffstats
path: root/ui/time_shift.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 17:34:41 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 17:34:41 +0000
commit4cf7cdd387d3caca7729521f8f89ec5123322c05 (patch)
tree5d212d2dde19b495d966274eca27fe0b2748ca82 /ui/time_shift.c
parent4f6f488c20f5d43b78b939f71328d3c12a01dc56 (diff)
fix some warnings.
svn path=/trunk/; revision=54334
Diffstat (limited to 'ui/time_shift.c')
-rw-r--r--ui/time_shift.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/time_shift.c b/ui/time_shift.c
index 658b79b884..ec490f7d74 100644
--- a/ui/time_shift.c
+++ b/ui/time_shift.c
@@ -134,13 +134,11 @@ calcNT3(nstime_t *OT1, nstime_t *OT3, nstime_t *NT1, nstime_t *NT3,
const gchar *
time_string_parse(const gchar *time_text, int *year, int *month, int *day, gboolean *negative, int *hour, int *minute, long double *second) {
- gchar *pts;
+ const gchar *pts = time_text;
if (!time_text || !hour || !minute || !second)
return "Unable to convert time.";
- pts = (gchar *)time_text;
-
/* strip whitespace */
while (isspace(pts[0]))
++pts;