ctdb: Remove an unnecessary cast
authorVolker Lendecke <vl@samba.org>
Thu, 29 Feb 2024 14:33:56 +0000 (15:33 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 13 Mar 2024 08:43:16 +0000 (08:43 +0000)
nl->srvid is uint64_t, as is the srvid parameter of ctdb_daemon_send_message()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Mar 13 08:43:16 UTC 2024 on atb-devel-224

ctdb/server/ctdb_daemon.c

index eb9d63454de239771d4fe74769e6c977ddab9a65..0a53770a6bf35406a74df6be2cc3662d9af98bbe 100644 (file)
@@ -2016,7 +2016,10 @@ static int ctdb_client_notify_destructor(struct ctdb_client_notify_list *nl)
 
        DEBUG(DEBUG_ERR,("Sending client notify message for srvid:%llu\n", (unsigned long long)nl->srvid));
 
-       ret = ctdb_daemon_send_message(nl->ctdb, CTDB_BROADCAST_CONNECTED, (unsigned long long)nl->srvid, nl->data);
+       ret = ctdb_daemon_send_message(nl->ctdb,
+                                      CTDB_BROADCAST_CONNECTED,
+                                      nl->srvid,
+                                      nl->data);
        if (ret != 0) {
                DEBUG(DEBUG_ERR,("Failed to send client notify message\n"));
        }