diff options
author | Neil Brown <neilb@suse.de> | 2006-05-29 02:06:32 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-29 02:06:32 +0000 |
commit | b56c3630901b7074f7f64989a39b73f6055f04e9 (patch) | |
tree | bbca33356908eb2a01d507716c6d39d102679113 /mdassemble.c | |
parent | b1ec2d6a74ca0a4d139563c2a2a08f7903355843 (diff) | |
download | mdadm-b56c3630901b7074f7f64989a39b73f6055f04e9.tar.gz mdadm-b56c3630901b7074f7f64989a39b73f6055f04e9.tar.xz mdadm-b56c3630901b7074f7f64989a39b73f6055f04e9.zip |
add CFLAGS to mdassemble build and fix a couple of non-returning functions
pass CFLAGS to mdassemble build, enabling -Wall -Werror showed some
issues also fixed by the patch.
From: Luca Berra <bluca@vodka.it>
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdassemble.c')
-rw-r--r-- | mdassemble.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdassemble.c b/mdassemble.c index 2317548..85b695c 100644 --- a/mdassemble.c +++ b/mdassemble.c @@ -54,7 +54,7 @@ mapping_t pers[] = { }; #ifndef MDASSEMBLE_AUTO -/* from mdadm.c */ +/* from mdopen.c */ int open_mddev(char *dev, int autof/*unused */) { int mdfd = open(dev, O_RDWR, 0); @@ -79,7 +79,7 @@ int readonly = 0; int verbose = 0; int force = 0; -int main() { +int main(int argc, char *argv[]) { mddev_ident_t array_list = conf_get_ident(configfile, NULL); if (!array_list) { fprintf(stderr, Name ": No arrays found in config file\n"); @@ -100,4 +100,5 @@ int main() { NULL, NULL, readonly, runstop, NULL, NULL, verbose, force); } + return rv; } |