From e4802177feb5bcb19e6309cd7d69994ffc5a456c Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 24 Mar 2009 11:38:04 +0100 Subject: [PATCH] mtree(8): Silence warnings when compiling with -DBOOTSTRAPPING. --- lib/libc/gen/strtofflags.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/libc/gen/strtofflags.c b/lib/libc/gen/strtofflags.c index bdc2b3cad7..2ab28c43d2 100644 --- a/lib/libc/gen/strtofflags.c +++ b/lib/libc/gen/strtofflags.c @@ -44,7 +44,7 @@ #include static struct { - char *name; + const char *name; u_long flag; int invert; } mapping[] = { @@ -87,9 +87,10 @@ char * fflagstostr(u_long flags) { char *string; - char *sp, *dp; + const char *sp; + char *dp; u_long setflags; - int i; + u_int i; if ((string = (char *)malloc(nmappings * (longestflaglen + 1))) == NULL) return (NULL); @@ -119,7 +120,7 @@ int strtofflags(char **stringp, u_long *setp, u_long *clrp) { char *string, *p; - int i; + u_int i; if (setp) *setp = 0; -- 2.41.0