PolicyKit: Branch 'master' - 2 commits
David Zeuthen
david at kemper.freedesktop.org
Fri Sep 10 11:54:44 PDT 2010
src/polkit/polkitcheckauthorizationflags.h | 4 ----
src/polkit/polkiterror.h | 4 ----
src/polkit/polkitimplicitauthorization.h | 4 ----
src/polkitagent/polkitagenthelperprivate.c | 4 ++--
4 files changed, 2 insertions(+), 14 deletions(-)
New commits:
commit db885633478c902c0be9dc832a4193c04d5a5e68
Author: Colin Walters <walters at verbum.org>
Date: Fri Sep 10 14:45:09 2010 -0400
Fix (correct) GCC warning about possibly-uninitialized variable
Signed-off-by: David Zeuthen <davidz at redhat.com>
diff --git a/src/polkitagent/polkitagenthelperprivate.c b/src/polkitagent/polkitagenthelperprivate.c
index d4495dd..8f0c878 100644
--- a/src/polkitagent/polkitagenthelperprivate.c
+++ b/src/polkitagent/polkitagenthelperprivate.c
@@ -48,8 +48,8 @@ _polkit_clearenv (void)
gboolean
send_dbus_message (const char *cookie, const char *user)
{
- PolkitAuthority *authority;
- PolkitIdentity *identity;
+ PolkitAuthority *authority = NULL;
+ PolkitIdentity *identity = NULL;
GError *error;
gboolean ret;
commit 920c40ef079fd2907f6c08d965d6d87eaf58f52a
Author: Colin Walters <walters at verbum.org>
Date: Fri Sep 10 14:42:51 2010 -0400
Remove duplicate definitions of enumeration types
These are defined in polkitenumtypes.h, don't re-define them.
Signed-off-by: David Zeuthen <davidz at redhat.com>
diff --git a/src/polkit/polkitcheckauthorizationflags.h b/src/polkit/polkitcheckauthorizationflags.h
index 94aa070..4baa0d1 100644
--- a/src/polkit/polkitcheckauthorizationflags.h
+++ b/src/polkit/polkitcheckauthorizationflags.h
@@ -30,10 +30,6 @@
G_BEGIN_DECLS
-GType polkit_check_authorization_flags_get_type (void) G_GNUC_CONST;
-
-#define POLKIT_TYPE_CHECK_AUTHORIZATION_FLAGS (polkit_check_authorization_flags_get_type ())
-
/**
* PolkitCheckAuthorizationFlags:
* @POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE: No flags set.
diff --git a/src/polkit/polkiterror.h b/src/polkit/polkiterror.h
index b31583d..e49cabf 100644
--- a/src/polkit/polkiterror.h
+++ b/src/polkit/polkiterror.h
@@ -40,10 +40,6 @@ G_BEGIN_DECLS
GQuark polkit_error_quark (void);
-GType polkit_error_get_type (void) G_GNUC_CONST;
-
-#define POLKIT_TYPE_ERROR (polkit_error_get_type ())
-
/**
* PolkitError:
* @POLKIT_ERROR_FAILED: The operation failed.
diff --git a/src/polkit/polkitimplicitauthorization.h b/src/polkit/polkitimplicitauthorization.h
index 9e5c51c..dee2611 100644
--- a/src/polkit/polkitimplicitauthorization.h
+++ b/src/polkit/polkitimplicitauthorization.h
@@ -30,10 +30,6 @@
G_BEGIN_DECLS
-GType polkit_implicit_authorization_get_type (void) G_GNUC_CONST;
-
-#define POLKIT_TYPE_IMPLICIT_AUTHORIZATION (polkit_implicit_authorization_get_type ())
-
/**
* PolkitImplicitAuthorization:
* @POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN: Unknown whether the subject is authorized, never returned in any public API.
More information about the hal-commit
mailing list