summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-07-22 14:29:54 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2008-07-22 14:29:54 -0400
commite1cfb5cb97eee87ce34ba5ce586bf1e90f485874 (patch)
tree5ccab0a6c2725e559063b4c64380e62d0cf460ab /tools
parentf757f22786dfa0bf034c5c1d66d47ecafc871606 (diff)
fix use of unix-user as int
Diffstat (limited to 'tools')
-rw-r--r--tools/list-sessions.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/list-sessions.c b/tools/list-sessions.c
index c320845..0a026c8 100644
--- a/tools/list-sessions.c
+++ b/tools/list-sessions.c
@@ -47,9 +47,9 @@
#define CK_SESSION_INTERFACE "org.freedesktop.ConsoleKit.Session"
static gboolean
-get_int (DBusGProxy *proxy,
- const char *method,
- int *val)
+get_uint (DBusGProxy *proxy,
+ const char *method,
+ guint *val)
{
GError *error;
gboolean res;
@@ -59,7 +59,7 @@ get_int (DBusGProxy *proxy,
method,
&error,
G_TYPE_INVALID,
- G_TYPE_INT, val,
+ G_TYPE_UINT, val,
G_TYPE_INVALID);
if (! res) {
g_warning ("%s failed: %s", method, error->message);
@@ -160,7 +160,7 @@ list_session (DBusGConnection *connection,
const char *ssid)
{
DBusGProxy *proxy;
- int uid;
+ guint uid;
char *realname;
char *sid;
char *lsid;
@@ -194,7 +194,7 @@ list_session (DBusGConnection *connection,
creation_time = NULL;
idle_since_hint = NULL;
- get_int (proxy, "GetUnixUser", &uid);
+ get_uint (proxy, "GetUnixUser", &uid);
get_path (proxy, "GetSeatId", &sid);
get_string (proxy, "GetLoginSessionId", &lsid);
get_string (proxy, "GetSessionType", &session_type);