Variable res is only used once and ret is re-used many times. Drop
res, use ret, which doesn't need to be initialised. Modernise debug
macro.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
bool interactive,
bool test_mode_enabled)
{
- int res, ret = -1;
+ int ret;
struct tevent_fd *fde;
/* Fork if not interactive */
ctdb_create_pidfile(ctdb);
/* create a unix domain stream socket to listen to */
- res = ux_socket_bind(ctdb);
- if (res!=0) {
- DEBUG(DEBUG_ALERT,("Cannot continue. Exiting!\n"));
+ ret = ux_socket_bind(ctdb);
+ if (ret != 0) {
+ D_ERR("Cannot continue. Exiting!\n");
exit(10);
}