diff options
author | Pablo Barciela <[email protected]> | 2018-01-08 20:27:32 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-01-08 20:27:32 +0100 |
commit | 6c23683558783dea30b5aeb9225f74e53ee8bb37 (patch) | |
tree | f87953938dbfffbf0aac73c4bff0bf275ad96dc3 | |
parent | f43fb7da0f7a4d37180e00132b83e10179c6aec6 (diff) | |
download | mate-settings-daemon-6c23683558783dea30b5aeb9225f74e53ee8bb37.tar.bz2 mate-settings-daemon-6c23683558783dea30b5aeb9225f74e53ee8bb37.tar.xz |
msd-datetime-mechanism.c: Fix build warnings:
format ‘%lld’ expects argument of type ‘long long int’, but argument has type ‘long int’
-rw-r--r-- | plugins/datetime/msd-datetime-mechanism.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/datetime/msd-datetime-mechanism.c b/plugins/datetime/msd-datetime-mechanism.c index 6fc3399..1a89234 100644 --- a/plugins/datetime/msd-datetime-mechanism.c +++ b/plugins/datetime/msd-datetime-mechanism.c @@ -287,7 +287,7 @@ _set_time (MsdDatetimeMechanism *mechanism, if (settimeofday (tv, NULL) != 0) { error = g_error_new (MSD_DATETIME_MECHANISM_ERROR, MSD_DATETIME_MECHANISM_ERROR_GENERAL, - "Error calling settimeofday({%lld,%lld}): %s", + "Error calling settimeofday({%ld,%ld}): %s", (gint64) tv->tv_sec, (gint64) tv->tv_usec, strerror (errno)); dbus_g_method_return_error (context, error); @@ -397,7 +397,7 @@ msd_datetime_mechanism_set_time (MsdDatetimeMechanism *mechanism, struct timeval tv; reset_killtimer (); - g_debug ("SetTime(%lld) called", seconds_since_epoch); + g_debug ("SetTime(%ld) called", seconds_since_epoch); tv.tv_sec = (time_t) seconds_since_epoch; tv.tv_usec = 0; @@ -412,7 +412,7 @@ msd_datetime_mechanism_adjust_time (MsdDatetimeMechanism *mechanism, struct timeval tv; reset_killtimer (); - g_debug ("AdjustTime(%lld) called", seconds_to_add); + g_debug ("AdjustTime(%ld) called", seconds_to_add); if (gettimeofday (&tv, NULL) != 0) { GError *error; |