]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-server: Add some local variables
authorMartin Schwenke <mschwenke@ddn.com>
Sun, 29 Sep 2024 04:06:51 +0000 (14:06 +1000)
committerAnoop C S <anoopcs@samba.org>
Mon, 7 Oct 2024 15:58:38 +0000 (15:58 +0000)
commita15167aafe83127efd33d5e5875ffb87746e986a
tree9a7ba72a6395c30bd2d3d6c7ff0e3a44fb88ed70
parent33e28deeef9cf991637a09a2c9474c88244e578b
ctdb-server: Add some local variables

Improve readability by not repeating the complex expression now
assigned to addr.  ctdb_sys_have_ip() is called in both arms of the
if/else, so call it once when declaring the new variable.

Modernise debug macros while touching lines.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
ctdb/server/ctdb_recoverd.c