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/mountinfo.c | |
parent | b4bff9ce5efce83a7265a42d4372d367ca32f696 (diff) | |
download | openrc-649a71055294e9fa275ebb406361cf46c843cade.tar.gz openrc-649a71055294e9fa275ebb406361cf46c843cade.tar.bz2 openrc-649a71055294e9fa275ebb406361cf46c843cade.tar.xz |
Quiet some more lint warnings.
Diffstat (limited to 'src/rc/mountinfo.c')
-rw-r--r-- | src/rc/mountinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c index 8a847b8..7dc7d06 100644 --- a/src/rc/mountinfo.c +++ b/src/rc/mountinfo.c @@ -219,7 +219,7 @@ static char **find_mounts (struct args *args) int i; char **list = NULL; char *options = NULL; - int flags; + uint64_t flags; struct opt *o; if ((nmnts = getmntinfo (&mnts, MNT_NOWAIT)) == 0) @@ -236,7 +236,7 @@ static char **find_mounts (struct args *args) options = xstrdup (o->o_name); else { char *tmp = NULL; - int l = strlen (options) + strlen (o->o_name) + 2; + size_t l = strlen (options) + strlen (o->o_name) + 2; tmp = xmalloc (sizeof (char) * l); snprintf (tmp, l, "%s,%s", options, o->o_name); free (options); @@ -476,4 +476,5 @@ int mountinfo (int argc, char **argv) REG_FREE (skip_point_regex); exit (result); + /* NOTREACHED */ } |