diff options
author | mwilck@arcor.de <mwilck@arcor.de> | 2013-08-16 20:21:59 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-08-28 06:58:56 +0200 |
commit | 7ac5d47e8ab465cb2321eaceb3a0f62748312ffe (patch) | |
tree | 7cd0a3c1deb49434f9f395058c2403265f82f6d9 /util.c | |
parent | DDF: increase default value for safe_mode_delay to 4000ms (diff) | |
download | mdadm-7ac5d47e8ab465cb2321eaceb3a0f62748312ffe.tar.xz mdadm-7ac5d47e8ab465cb2321eaceb3a0f62748312ffe.zip |
in_initrd: fix gcc compiler error
On some systems, this code caused a "comparison between signed
and unsigned" error.
Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1949,6 +1949,6 @@ int in_initrd(void) /* This is based on similar function in systemd. */ struct statfs s; return statfs("/", &s) >= 0 && - (s.f_type == TMPFS_MAGIC || - s.f_type == RAMFS_MAGIC); + ((unsigned long)s.f_type == TMPFS_MAGIC || + (unsigned long)s.f_type == RAMFS_MAGIC); } |