...
 
Commits (4)
......@@ -16,10 +16,6 @@ AC_PROG_CC
AC_PROG_CC_STDC
AM_PROG_CC_C_O
AM_PROG_AR
AX_CHECK_GNU_MAKE
if test "x$ifGNUmake" = "x#" ; then
AC_MSG_ERROR("GNUmake is required")
fi
LT_PREREQ([2.2])
LT_INIT([disable-static])
......
......@@ -382,15 +382,13 @@ static void remove_acl_cb(SignonIdentity *self, SignonIdentityInfo *info, const
goto clean_user_data;
}
old_list = signon_identity_info_get_access_control_list (info);
for (old_list; old_list != NULL; old_list = g_list_next (old_list)) {
for (old_list = signon_identity_info_get_access_control_list (info); old_list != NULL; old_list = g_list_next (old_list)) {
SignonSecurityContext *ctx = (SignonSecurityContext *) old_list->data;
new_list = g_list_append (new_list, signon_security_context_copy (ctx));
}
gboolean list_changed = FALSE;
list_iter = new_list;
for (list_iter; list_iter != NULL; list_iter = g_list_next (list_iter)) {
for (list_iter = new_list; list_iter != NULL; list_iter = g_list_next (list_iter)) {
SignonSecurityContext *curr_context = list_iter->data;
if (g_strcmp0(signon_security_context_get_system_context(curr_context), am_user_data->security_context->sys_ctx) == 0
&& g_strcmp0(signon_security_context_get_application_context(curr_context), am_user_data->security_context->app_ctx) == 0) {
......
......@@ -141,7 +141,7 @@ signon_auth_service_class_init (SignonAuthServiceClass *klass)
* Returns: an instance of an #SignonAuthService.
*/
SignonAuthService *
signon_auth_service_new ()
signon_auth_service_new (void)
{
return g_object_new (SIGNON_TYPE_AUTH_SERVICE, NULL);
}
......
......@@ -87,7 +87,7 @@ typedef void (*SignonQueryIdentitiesCb) (SignonAuthService *auth_service,
const GError *error,
gpointer user_data);
SignonAuthService *signon_auth_service_new ();
SignonAuthService *signon_auth_service_new (void);
void signon_auth_service_query_methods (SignonAuthService *auth_service,
SignonQueryMethodsCb cb,
......
......@@ -243,7 +243,7 @@ process_async_cb_wrapper (GObject *object, GAsyncResult *res,
}
static GQuark
auth_session_object_quark ()
auth_session_object_quark (void)
{
static GQuark quark = 0;
......
......@@ -35,7 +35,7 @@ typedef struct {
} SignonReadyData;
static GQuark
_signon_object_ready_quark()
_signon_object_ready_quark(void)
{
static GQuark quark = 0;
......@@ -46,7 +46,7 @@ _signon_object_ready_quark()
}
static GQuark
_signon_object_error_quark()
_signon_object_error_quark(void)
{
static GQuark quark = 0;
......
......@@ -207,7 +207,7 @@ signon_identity_info_new_from_variant (GVariant *variant)
g_variant_lookup (variant,
SIGNOND_IDENTITY_INFO_TYPE,
"i",
"u",
&info->type);
return info;
......@@ -297,7 +297,7 @@ signon_identity_info_to_variant (const SignonIdentityInfo *self)
g_variant_builder_add (&builder, "{sv}",
SIGNOND_IDENTITY_INFO_TYPE,
g_variant_new_int32 (self->type));
g_variant_new_uint32 (self->type));
return g_variant_builder_end (&builder);
}
......@@ -313,7 +313,7 @@ signon_identity_info_to_variant (const SignonIdentityInfo *self)
*
* Returns: a new #SignonIdentityInfo item.
*/
SignonIdentityInfo *signon_identity_info_new ()
SignonIdentityInfo *signon_identity_info_new (void)
{
SignonIdentityInfo *info = g_slice_new0 (SignonIdentityInfo);
info->methods = g_hash_table_new_full (g_str_hash,
......
......@@ -59,7 +59,7 @@ typedef enum {
GType signon_identity_info_get_type (void) G_GNUC_CONST;
SignonIdentityInfo *signon_identity_info_new ();
SignonIdentityInfo *signon_identity_info_new (void);
void signon_identity_info_free (SignonIdentityInfo *info);
SignonIdentityInfo *signon_identity_info_copy (const SignonIdentityInfo *other);
......
......@@ -296,7 +296,7 @@ static void identity_session_object_destroyed_cb (gpointer data,
GObject *where_the_session_was);
static GQuark
identity_object_quark ()
identity_object_quark (void)
{
static GQuark quark = 0;
......
......@@ -111,7 +111,7 @@ typedef SignonIdentityVoidCb SignonIdentityReferenceRemovedCb;
GType signon_identity_get_type (void) G_GNUC_CONST;
SignonIdentity *signon_identity_new_from_db (guint32 id);
SignonIdentity *signon_identity_new ();
SignonIdentity *signon_identity_new (void);
SignonIdentity *signon_identity_new_with_context_from_db (guint32 id,
const gchar *application_context);
......
......@@ -70,7 +70,7 @@ G_DEFINE_BOXED_TYPE (SignonSecurityContext, signon_security_context,
* Returns: (transfer full): allocated #SignonSecurityContext.
*/
SignonSecurityContext *
signon_security_context_new ()
signon_security_context_new (void)
{
SignonSecurityContext *ctx;
......
......@@ -48,7 +48,7 @@ struct _SignonSecurityContext
GType signon_security_context_get_type (void) G_GNUC_CONST;
SignonSecurityContext * signon_security_context_new ();
SignonSecurityContext * signon_security_context_new (void);
SignonSecurityContext * signon_security_context_new_from_values (
const gchar *system_context,
const gchar *application_context);
......
......@@ -31,7 +31,7 @@ static GHashTable *thread_objects = NULL;
static GMutex map_mutex;
static SsoAuthService *
get_singleton ()
get_singleton (void)
{
SsoAuthService *object = NULL;
......@@ -96,7 +96,7 @@ _on_auth_service_destroyed (gpointer data, GObject *obj)
SsoAuthService *
sso_auth_service_get_instance ()
sso_auth_service_get_instance (void)
{
SsoAuthService *sso_auth_service = NULL;
GDBusConnection *connection = NULL;
......
......@@ -30,7 +30,7 @@
G_BEGIN_DECLS
G_GNUC_INTERNAL
SsoAuthService *sso_auth_service_get_instance ();
SsoAuthService *sso_auth_service_get_instance (void);
G_END_DECLS
......
......@@ -54,7 +54,7 @@ static gboolean id_destroyed = FALSE;
#define SIGNOND_IDLE_TIMEOUT (5 + 2)
static void
_stop_mainloop ()
_stop_mainloop (void)
{
if (main_loop) {
g_main_loop_quit (main_loop);
......@@ -62,7 +62,7 @@ _stop_mainloop ()
}
static void
_run_mainloop ()
_run_mainloop (void)
{
if (main_loop)
g_main_loop_run (main_loop);
......@@ -70,7 +70,7 @@ _run_mainloop ()
static void
_setup ()
_setup (void)
{
#if !GLIB_CHECK_VERSION (2, 36, 0)
g_type_init ();
......@@ -81,7 +81,7 @@ _setup ()
}
static void
_teardown ()
_teardown (void)
{
if (auth_service)
{
......@@ -125,7 +125,7 @@ new_identity_store_credentials_cb(
}
static guint
new_identity()
new_identity(void)
{
SignonIdentity *idty;
GHashTable *methods;
......@@ -169,7 +169,7 @@ START_TEST(test_init)
END_TEST
static void
signon_query_methods_cb (SignonAuthService *auth_service, gchar **methods,
signon_query_methods_cb (SignonAuthService *_auth_service, gchar **methods,
GError *error, gpointer user_data)
{
if (error)
......@@ -216,7 +216,7 @@ START_TEST(test_query_methods)
END_TEST
static void
signon_query_mechanisms_cb (SignonAuthService *auth_service, gchar *method,
signon_query_mechanisms_cb (SignonAuthService *_auth_service, gchar *method,
gchar **mechanisms, GError *error, gpointer user_data)
{
if (error)
......@@ -257,7 +257,7 @@ signon_query_mechanisms_cb (SignonAuthService *auth_service, gchar *method,
}
static void
signon_query_mechanisms_cb_fail (SignonAuthService *auth_service,
signon_query_mechanisms_cb_fail (SignonAuthService *_auth_service,
gchar *method,
gchar **mechanisms,
GError *error, gpointer user_data)
......@@ -780,7 +780,7 @@ START_TEST(test_auth_session_process_after_store)
}
END_TEST
static GHashTable *create_methods_hashtable()
static GHashTable *create_methods_hashtable(void)
{
gchar *mechanisms[] = {
"mechanism1",
......@@ -1140,7 +1140,7 @@ static void identity_info_cb(SignonIdentity *self, SignonIdentityInfo *info, con
_stop_mainloop ();
}
static SignonIdentityInfo *create_standard_info()
static SignonIdentityInfo *create_standard_info(void)
{
GHashTable *methods;
......@@ -1442,12 +1442,12 @@ END_TEST
void free_identity_info_cb (gpointer data)
{
SignonIdentityInfo *info;
SignonIdentityInfo *info = (SignonIdentityInfo *)data;
signon_identity_info_free (info);
}
void query_identities_cb (SignonAuthService *auth_service,
void query_identities_cb (SignonAuthService *_auth_service,
GList *identity_list, const GError *error, gpointer user_data)
{
GList *iter = identity_list;
......