int -> time_t
This commit is contained in:
parent
6f93566fc7
commit
240399534c
@ -514,7 +514,7 @@ char **rc_order_services (rc_depinfo_t *deptree, const char *runlevel,
|
||||
static bool is_newer_than (const char *file, const char *target)
|
||||
{
|
||||
struct stat buf;
|
||||
int mtime;
|
||||
time_t mtime;
|
||||
|
||||
if (stat (file, &buf) != 0 || buf.st_size == 0)
|
||||
return (false);
|
||||
|
@ -175,7 +175,7 @@ static bool in_control ()
|
||||
path = rc_strcatpaths (RC_SVCDIR, tests[i], applet, (char *) NULL);
|
||||
if (rc_exists (path))
|
||||
{
|
||||
int m = get_mtime (path, false);
|
||||
time_t m = get_mtime (path, false);
|
||||
if (mtime < m && m != 0)
|
||||
{
|
||||
free (path);
|
||||
|
Loading…
Reference in New Issue
Block a user