ctdb-locking: Add argc parameter to lock_helper_args()
authorMartin Schwenke <martin@meltin.net>
Wed, 13 Aug 2014 04:46:31 +0000 (14:46 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 12 Sep 2014 06:46:14 +0000 (08:46 +0200)
commit2e17b0ecddffb8590c4e8b9afaf1767ef7e8f89c
tree616eab73014d6dca0fab2ce31110e14f574ed4c5
parent8c1b1435fe102d36fbea54a941b04570d529a44c
ctdb-locking: Add argc parameter to lock_helper_args()

To make this sane, also add an argv parameter and change the return
type to bool.  Anticipating a subsequent change, make the type of argv
match what is needed by vfork_with_logging() and cast it when passing
to execv().  This also means changing the type of the name member of
struct db_namelist.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_lock.c