aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/librc-depend.c2
-rw-r--r--src/runscript.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librc-depend.c b/src/librc-depend.c
index 9c3a9c3f..93cc1f5c 100644
--- a/src/librc-depend.c
+++ b/src/librc-depend.c
@@ -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);
diff --git a/src/runscript.c b/src/runscript.c
index 70db2cdf..721b967c 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -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);