diff options
author | Roy Marples <roy@marples.name> | 2008-01-22 11:07:39 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-22 11:07:39 +0000 |
commit | 649a71055294e9fa275ebb406361cf46c843cade (patch) | |
tree | 273005e044ce31f28f187b4abbabf78f35b53d1b /src/rc/checkpath.c | |
parent | b4bff9ce5efce83a7265a42d4372d367ca32f696 (diff) |
Quiet some more lint warnings.
Diffstat (limited to 'src/rc/checkpath.c')
-rw-r--r-- | src/rc/checkpath.c | 7 |
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 */ } |