svc: The timestamp should have subsecond resolution

When finit completes quicker than one second it will
not find if any configurations has been changed.

Signed-off-by: Mattias Walström <mattias.walstrom@westermo.se>
This commit is contained in:
Mattias Walström committed 2017-01-11 16:28:03 +01:00
1 parent 816aa9a17c
commit a95df9d64b
5 files changed
+20 -14

No files matched your search

+1 -1
View File
@@ -538,7 +538,7 @@ void service_runlevel(int newlevel)
* Returns:
* POSIX OK(0) on success, or non-zero errno exit status on failure.
*/
int service_register(int type, char *line, time_t mtime, char *username)
int service_register(int type, char *line, struct timeval *mtime, char *username)
{
int i = 0;
int id = 1; /* Default to ID:1 */