]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Detail.c
Compile with -Wextra by default
[thirdparty/mdadm.git] / Detail.c
index 2146dd5387f4260ac03367c00134141cef10142a..e0817aac20298c442ea32f59b33ad7298d92171e 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -290,7 +290,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
                struct mdstat_ent *ms = mdstat_read(0, 0);
                struct mdstat_ent *e;
                int devnum = array.md_minor;
-               if (major(stb.st_rdev) == get_mdp_major())
+               if (major(stb.st_rdev) == (unsigned)get_mdp_major())
                        devnum = -1 - devnum;
 
                for (e=ms; e; e=e->next)