summaryrefslogtreecommitdiffstats
path: root/Kill.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-08-05 05:13:02 +0200
committerNeilBrown <neilb@suse.de>2010-08-05 05:13:02 +0200
commitf21e18ca8969f21549c646096f354eac57cd53a8 (patch)
tree5e0b0474075ba8f629860964914fe18a6892ccd4 /Kill.c
parentDetail: clean up handing of the 'info' we load from superblock. (diff)
downloadmdadm-f21e18ca8969f21549c646096f354eac57cd53a8.tar.xz
mdadm-f21e18ca8969f21549c646096f354eac57cd53a8.zip
Compile with -Wextra by default
This produced lots of warning, some of which pointed to actual bugs. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Kill.c')
-rw-r--r--Kill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kill.c b/Kill.c
index b3344bd2..3d1810f0 100644
--- a/Kill.c
+++ b/Kill.c
@@ -97,7 +97,7 @@ int Kill_subarray(char *dev, char *subarray, int quiet)
memset(st, 0, sizeof(*st));
if (snprintf(st->subarray, sizeof(st->subarray), "%s", subarray) >=
- sizeof(st->subarray)) {
+ (int)sizeof(st->subarray)) {
if (!quiet)
fprintf(stderr,
Name ": Input overflow for subarray '%s' > %zu bytes\n",