Fix all cast-function-type warnings (#71400)
This commit is contained in:
parent
69b1ea1c2f
commit
72b778e47e
|
@ -218,7 +218,7 @@ finalize(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoFederation *federation)
|
||||
instance_init(LassoFederation *federation, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
federation->private_data = g_new0(LassoFederationPrivate, 1);
|
||||
federation->private_data->dispose_has_run = FALSE;
|
||||
|
|
|
@ -216,7 +216,7 @@ finalize(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoIdentity *identity)
|
||||
instance_init(LassoIdentity *identity, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
identity->private_data = g_new0(LassoIdentityPrivate, 1);
|
||||
identity->private_data->dispose_has_run = FALSE;
|
||||
|
|
|
@ -408,7 +408,7 @@ finalize(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoLecp *lecp)
|
||||
instance_init(LassoLecp *lecp, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
lecp->authnRequestEnvelope = NULL;
|
||||
lecp->authnResponseEnvelope = NULL;
|
||||
|
|
|
@ -2453,7 +2453,7 @@ dispose(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoLogin *login)
|
||||
instance_init(LassoLogin *login, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
login->private_data = LASSO_LOGIN_GET_PRIVATE(login);
|
||||
login->protocolProfile = 0;
|
||||
|
|
|
@ -1216,7 +1216,7 @@ finalize(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoLogout *logout)
|
||||
instance_init(LassoLogout *logout, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
logout->initial_http_request_method = LASSO_HTTP_METHOD_NONE;
|
||||
logout->private_data = g_new0(LassoLogoutPrivate, 1);
|
||||
|
|
|
@ -664,7 +664,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoNameRegistration *name_registration)
|
||||
instance_init(LassoNameRegistration *name_registration, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
name_registration->oldNameIdentifier = NULL;
|
||||
}
|
||||
|
|
|
@ -929,7 +929,7 @@ dispose(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoProfile *profile)
|
||||
instance_init(LassoProfile *profile, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
profile->private_data = LASSO_PROFILE_GET_PRIVATE(profile);
|
||||
profile->private_data->dispose_has_run = FALSE;
|
||||
|
|
|
@ -882,7 +882,7 @@ dispose(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoProvider *provider)
|
||||
instance_init(LassoProvider *provider, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
provider->role = LASSO_PROVIDER_ROLE_NONE;
|
||||
provider->ProviderID = NULL;
|
||||
|
|
|
@ -426,7 +426,8 @@ get_first_providerID(gchar *key, G_GNUC_UNUSED gpointer value, char **providerID
|
|||
}
|
||||
|
||||
static gboolean
|
||||
get_first_providerID_by_role(G_GNUC_UNUSED gchar *key, gpointer value, LassoProviderRole role) {
|
||||
get_first_providerID_by_role(G_GNUC_UNUSED gchar *key, gpointer value, gpointer _role) {
|
||||
LassoProviderRole role = (LassoProviderRole)_role;
|
||||
LassoProvider *provider = (LassoProvider*)value;
|
||||
if (provider->role == role || role == LASSO_PROVIDER_ROLE_ANY) {
|
||||
return TRUE;
|
||||
|
@ -648,7 +649,7 @@ finalize(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoServer *server)
|
||||
instance_init(LassoServer *server, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
server->private_data = g_new0(LassoServerPrivate, 1);
|
||||
server->private_data->dispose_has_run = FALSE;
|
||||
|
|
|
@ -63,8 +63,8 @@ lasso_new_nid_and_session_index(LassoNode *name_id, const char *assertion_id, co
|
|||
return nid_and_session_index;
|
||||
}
|
||||
|
||||
void
|
||||
lasso_release_nid_and_session_index(struct _NidAndSessionIndex *nid_and_session_index)
|
||||
static void
|
||||
lasso_release_nid_and_session_index(struct _NidAndSessionIndex *nid_and_session_index, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
lasso_release_gobject(nid_and_session_index->name_id);
|
||||
lasso_release_string(nid_and_session_index->session_index);
|
||||
|
@ -97,7 +97,7 @@ lasso_session_add_nid_and_session_index(LassoSession *session,
|
|||
/* do some sharing and limit doublons */
|
||||
if (lasso_match_name_id(other_nid_and_sid->name_id, nid_and_session_index->name_id)) {
|
||||
if (lasso_strisequal(other_nid_and_sid->session_index, nid_and_session_index->session_index)) {
|
||||
lasso_release_nid_and_session_index(nid_and_session_index);
|
||||
lasso_release_nid_and_session_index(nid_and_session_index, NULL);
|
||||
return;
|
||||
}
|
||||
// lasso_assign_gobject(nid_and_session_index->name_id, other_nid_and_sid->name_id);
|
||||
|
@ -952,7 +952,7 @@ dispose(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSession *session)
|
||||
instance_init(LassoSession *session, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
session->private_data = LASSO_SESSION_GET_PRIVATE(session);
|
||||
session->private_data->dispose_has_run = FALSE;
|
||||
|
|
|
@ -51,7 +51,7 @@ static LassoNodeClass *parent_class = NULL;
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoKey *key)
|
||||
instance_init(LassoKey *key, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
key->private_data = LASSO_KEY_GET_PRIVATE(key);
|
||||
}
|
||||
|
|
|
@ -537,7 +537,7 @@ finalize(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoAssertionQuery *assertion_query)
|
||||
instance_init(LassoAssertionQuery *assertion_query, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
assertion_query->private_data = g_new0(LassoAssertionQueryPrivate, 1);
|
||||
}
|
||||
|
|
|
@ -434,7 +434,7 @@ finalize(GObject *object)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoEcp *ecp)
|
||||
instance_init(LassoEcp *ecp, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
ecp->private_data = g_new0(LassoEcpPrivate, 1);
|
||||
}
|
||||
|
|
|
@ -121,12 +121,16 @@ lasso_gobject_is_of_type(GObject *a, GType b)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lasso_extract_gtype_from_list_compare_func(const void *a, const void *b) {
|
||||
return lasso_gobject_is_of_type((GObject*)a, (GType)b);
|
||||
}
|
||||
|
||||
GObject*
|
||||
lasso_extract_gtype_from_list(GType type, GList *list)
|
||||
{
|
||||
GList *needle;
|
||||
|
||||
needle = g_list_find_custom(list, (gconstpointer)type, (GCompareFunc)lasso_gobject_is_of_type);
|
||||
needle = g_list_find_custom(list, (gconstpointer)type, lasso_extract_gtype_from_list_compare_func);
|
||||
if (needle) {
|
||||
return needle->data;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ static LassoNodeClass *parent_class = NULL;
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoDsX509Data *x509_data)
|
||||
instance_init(LassoDsX509Data *x509_data, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
x509_data->private_data = LASSO_DS_X509_DATA_GET_PRIVATE(x509_data);
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
|
|||
|
||||
|
||||
static void
|
||||
instance_init(LassoEcpRequest *node)
|
||||
instance_init(LassoEcpRequest *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->IsPassive = TRUE;
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ init_from_query(LassoNode *node, char **query_fields)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoLibAuthnRequest *node)
|
||||
instance_init(LassoLibAuthnRequest *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->IsPassive = TRUE;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ static struct XmlSnippet schema_snippets[] = {
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoLibScoping *node)
|
||||
instance_init(LassoLibScoping *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->ProxyCount = -1;
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@ get_xmlNode(LassoNode *node, gboolean lasso_dump)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSaml2Assertion *node)
|
||||
instance_init(LassoSaml2Assertion *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->sign_type = LASSO_SIGNATURE_TYPE_NONE;
|
||||
node->encryption_sym_key_type = LASSO_ENCRYPTION_SYM_KEY_TYPE_DEFAULT;
|
||||
|
|
|
@ -78,7 +78,7 @@ static LassoNodeClass *parent_class = NULL;
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSaml2KeyInfoConfirmationDataType *saml2_key_info_confirmation_data_type)
|
||||
instance_init(LassoSaml2KeyInfoConfirmationDataType *saml2_key_info_confirmation_data_type, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
saml2_key_info_confirmation_data_type->private_data =
|
||||
LASSO_SAML2_KEY_INFO_CONFIRMATION_DATA_TYPE_GET_PRIVATE(
|
||||
|
|
|
@ -99,7 +99,7 @@ static LassoNodeClass *parent_class = NULL;
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSamlp2AuthnRequest *node)
|
||||
instance_init(LassoSamlp2AuthnRequest *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->AssertionConsumerServiceIndex = -1;
|
||||
node->AttributeConsumingServiceIndex = -1;
|
||||
|
|
|
@ -115,7 +115,7 @@ build_query(LassoNode *node)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSamlp2RequestAbstract *node)
|
||||
instance_init(LassoSamlp2RequestAbstract *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->sign_type = LASSO_SIGNATURE_TYPE_NONE;
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ init_from_query(LassoNode *node, char **query_fields)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSamlp2StatusResponse *node)
|
||||
instance_init(LassoSamlp2StatusResponse *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->sign_type = LASSO_SIGNATURE_TYPE_NONE;
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ static LassoNodeClass *parent_class = NULL;
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSamlpRequestAbstract *node)
|
||||
instance_init(LassoSamlpRequestAbstract *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->sign_type = LASSO_SIGNATURE_TYPE_NONE;
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ static LassoNodeClass *parent_class = NULL;
|
|||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
instance_init(LassoSamlpResponseAbstract *node)
|
||||
instance_init(LassoSamlpResponseAbstract *node, G_GNUC_UNUSED void *unused)
|
||||
{
|
||||
node->sign_type = LASSO_SIGNATURE_TYPE_NONE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue