[gdm/gnome-2-30] Don't use uid_t in the public API
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/gnome-2-30] Don't use uid_t in the public API
- Date: Fri, 11 Jun 2010 01:53:26 +0000 (UTC)
commit 69ca384738bb5d45a140dc53481aa67409ba22b2
Author: William Jon McCann <jmccann redhat com>
Date: Wed Jun 9 19:11:29 2010 -0400
Don't use uid_t in the public API
Change uid_t to gulong in the public API (which matches how
it was already represented in the gobject properties).
See https://bugzilla.gnome.org/show_bug.cgi?id=601458
gui/simple-greeter/gdm-user-manager.c | 2 +-
gui/simple-greeter/gdm-user-manager.h | 2 +-
gui/simple-greeter/gdm-user.c | 2 +-
gui/simple-greeter/gdm-user.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index ee2da65..f6315c2 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -970,7 +970,7 @@ gdm_user_manager_get_user (GdmUserManager *manager,
GdmUser *
gdm_user_manager_get_user_by_uid (GdmUserManager *manager,
- uid_t uid)
+ gulong uid)
{
GdmUser *user;
struct passwd *pwent;
diff --git a/gui/simple-greeter/gdm-user-manager.h b/gui/simple-greeter/gdm-user-manager.h
index 35d7423..116e3fb 100644
--- a/gui/simple-greeter/gdm-user-manager.h
+++ b/gui/simple-greeter/gdm-user-manager.h
@@ -74,7 +74,7 @@ GSList * gdm_user_manager_list_users (GdmUserManager *mana
GdmUser * gdm_user_manager_get_user (GdmUserManager *manager,
const char *user_name);
GdmUser * gdm_user_manager_get_user_by_uid (GdmUserManager *manager,
- uid_t uid);
+ gulong uid);
gboolean gdm_user_manager_activate_user_session (GdmUserManager *manager,
GdmUser *user);
diff --git a/gui/simple-greeter/gdm-user.c b/gui/simple-greeter/gdm-user.c
index 56802b3..a83076b 100644
--- a/gui/simple-greeter/gdm-user.c
+++ b/gui/simple-greeter/gdm-user.c
@@ -297,7 +297,7 @@ _gdm_user_update_login_frequency (GdmUser *user,
* Since: 1.0
**/
-uid_t
+gulong
gdm_user_get_uid (GdmUser *user)
{
g_return_val_if_fail (GDM_IS_USER (user), -1);
diff --git a/gui/simple-greeter/gdm-user.h b/gui/simple-greeter/gdm-user.h
index 9450b85..725c06a 100644
--- a/gui/simple-greeter/gdm-user.h
+++ b/gui/simple-greeter/gdm-user.h
@@ -39,7 +39,7 @@ typedef struct _GdmUser GdmUser;
GType gdm_user_get_type (void) G_GNUC_CONST;
-uid_t gdm_user_get_uid (GdmUser *user);
+gulong gdm_user_get_uid (GdmUser *user);
G_CONST_RETURN char *gdm_user_get_user_name (GdmUser *user);
G_CONST_RETURN char *gdm_user_get_real_name (GdmUser *user);
guint gdm_user_get_num_sessions (GdmUser *user);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]