Skip to content

Commit a13b0dc

Browse files
committed
Remove old style cast
1 parent 2b4384f commit a13b0dc

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/config_service_v1.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ static void config_service_v1_deinit(void* dlh)
148148
dlh, WSREP_CONFIG_SERVICE_DEINIT_FUNC_V1, "config service v1");
149149
}
150150

151-
int wsrep::config_service_v1_fetch(struct wsrep_st* wsrep,
151+
int wsrep::config_service_v1_fetch(wsrep::provider& provider,
152152
wsrep::provider_options* options)
153153
{
154+
struct wsrep_st* wsrep = static_cast<struct wsrep_st*>(provider.native());
154155
if (wsrep == nullptr)
155156
{
156157
// Not a provider which was loaded via wsrep-API
@@ -180,14 +181,6 @@ int wsrep::config_service_v1_fetch(struct wsrep_st* wsrep,
180181
return 0;
181182
}
182183

183-
int wsrep::config_service_v1_fetch(wsrep::provider& provider,
184-
wsrep::provider_options* options)
185-
{
186-
struct wsrep_st* wsrep = (struct wsrep_st*)provider.native();
187-
return config_service_v1_fetch(wsrep, options);
188-
}
189-
190-
191184
namespace wsrep_config_service_v2
192185
{
193186
wsrep_config_service_v2_t service{ 0 };

0 commit comments

Comments
 (0)