Make insmod quiet by default (patch from Yann E. Morin).
[oweals/busybox.git] / e2fsprogs / e2p / pf.c
index 48d75a9ae5ca125ee5c056d3fe7d988d9ff792ec..2194ac6bf679b123eebed169cca81d0c0765415c 100644 (file)
@@ -24,7 +24,7 @@ struct flags_name {
        const char      *long_name;
 };
 
-static struct flags_name flags_array[] = {
+static const struct flags_name flags_array[] = {
        { EXT2_SECRM_FL, "s", "Secure_Deletion" },
        { EXT2_UNRM_FL, "u" , "Undelete" },
        { EXT2_SYNC_FL, "S", "Synchronous_Updates" },
@@ -50,7 +50,7 @@ static struct flags_name flags_array[] = {
 void print_flags (FILE * f, unsigned long flags, unsigned options)
 {
        int long_opt = (options & PFOPT_LONG);
-       struct flags_name *fp;
+       const struct flags_name *fp;
        int     first = 1;
 
        for (fp = flags_array; fp->flag != 0; fp++) {
@@ -71,4 +71,3 @@ void print_flags (FILE * f, unsigned long flags, unsigned options)
        if (long_opt && first)
                fputs("---", f);
 }
-