aboutsummaryrefslogtreecommitdiff
path: root/src/rc/checkpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/checkpath.c')
-rw-r--r--src/rc/checkpath.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index 3fb43792..4b57e187 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -116,7 +116,7 @@ static int parse_mode (mode_t *mode, char *text)
errno = EINVAL;
return (-1);
}
- *mode = l;
+ *mode = (mode_t) l;
return (0);
}
@@ -138,7 +138,7 @@ static int parse_owner (struct passwd **user, struct group **group,
if (user && *u) {
if (sscanf (u, "%d", &id) == 1)
- *user = getpwuid (id);
+ *user = getpwuid ((uid_t) id);
else
*user = getpwnam (u);
if (! *user)
@@ -147,7 +147,7 @@ static int parse_owner (struct passwd **user, struct group **group,
if (group && g && *g) {
if (sscanf (g, "%d", &id) == 1)
- *group = getgrgid (id);
+ *group = getgrgid ((gid_t) id);
else
*group = getgrnam (g);
if (! *group)
@@ -232,4 +232,5 @@ int checkpath (int argc, char **argv)
}
exit (retval);
+ /* NOTREACHED */
}