]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/timesync/timesyncd-manager.c
timesync/timesyncd-manager: fix format-specifier issue 5624/head
authorMatija Skala <mskala@gmx.com>
Fri, 19 May 2017 12:36:40 +0000 (14:36 +0200)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Fri, 19 May 2017 12:40:07 +0000 (14:40 +0200)
commit0060bb8f5bbad433bc29405cc76b955d3125d8e9
tree99f2b0efc724cb6ab29875f91b6b7a0f15d00c9e
parent3bd7ef833caae7431a9c50450ce7b303234d45eb
timesync/timesyncd-manager: fix format-specifier issue

timex::time::tv_sec can have different sizes depending on the
host architecture. On x32 in particular, it is 8 bytes
long while the long int type is only 4 bytes  long. Hence,
using li as a format specifier will trigger a format
error. Thus, better use PRI_TIME instead of li which is
actually the right format specifier to use for time_t.
src/timesync/timesyncd-manager.c