Fix misc. gcc -Wall complaints in the misc and e2fsck directories
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/e2fsck/profile.c b/e2fsck/profile.c
index f50cb53..e7768a2 100644
--- a/e2fsck/profile.c
+++ b/e2fsck/profile.c
@@ -136,8 +136,8 @@
char *name;
char *value;
int group_level;
- int final:1; /* Indicate don't search next file */
- int deleted:1;
+ unsigned int final:1; /* Indicate don't search next file */
+ unsigned int deleted:1;
struct profile_node *first_child;
struct profile_node *parent;
struct profile_node *next, *prev;
@@ -217,8 +217,8 @@
static int compstr(const void *m1, const void *m2)
{
- const char *s1 = *((const char **) m1);
- const char *s2 = *((const char **) m2);
+ const char *s1 = *((const char * const *) m1);
+ const char *s2 = *((const char * const *) m2);
return strcmp(s1, s2);
}