diff options
author | NeilBrown <neilb@suse.de> | 2012-07-09 09:20:19 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-07-09 09:20:19 +0200 |
commit | 95c5020544e245f133d9ef4cdd0931d20b51a0fe (patch) | |
tree | 25cde1eeb8ca9482fd0c1e09b95585e0a1857e18 /mdadm.c | |
parent | Change Detail and misc_scan to take a struct context (diff) | |
download | mdadm-95c5020544e245f133d9ef4cdd0931d20b51a0fe.tar.xz mdadm-95c5020544e245f133d9ef4cdd0931d20b51a0fe.zip |
Change Monitor to take a struct context
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1388,10 +1388,12 @@ int main(int argc, char *argv[]) else c.delay = 60; } + if (c.delay == 0) + c.delay = 60; rv= Monitor(devlist, mailaddr, program, - c.delay?c.delay:60, daemonise, c.scan, oneshot, - dosyslog, c.test, pidfile, increments, - spare_sharing, c.prefer); + &c, daemonise, oneshot, + dosyslog, pidfile, increments, + spare_sharing); break; case GROW: |