int -> time_t

This commit is contained in:
Roy Marples 2007-04-10 14:03:37 +00:00
parent 6f93566fc7
commit 240399534c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);