summaryrefslogtreecommitdiffstats
path: root/tools/ck-get-x11-display-device.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-08-16 22:29:18 -0400
committerWilliam Jon McCann <mccann@jhu.edu>2007-08-16 22:29:18 -0400
commitfcb0f32632f74950c361a0a23128ebca05efdca0 (patch)
tree4e496846ea2b4327e4f8e3dbf4aee74b4321ddc3 /tools/ck-get-x11-display-device.c
parente56a95f64c9c9f57adebf6cb3e6c88790cec40e4 (diff)
move all proc stuff into ck-sysdeps
Diffstat (limited to 'tools/ck-get-x11-display-device.c')
-rw-r--r--tools/ck-get-x11-display-device.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/ck-get-x11-display-device.c b/tools/ck-get-x11-display-device.c
index 2d414c6..92a7936 100644
--- a/tools/ck-get-x11-display-device.c
+++ b/tools/ck-get-x11-display-device.c
@@ -32,18 +32,18 @@
#include <X11/Xlib.h>
#include <glib.h>
-#include "proc.h"
+#include "ck-sysdeps.h"
static char *
get_tty_for_pid (int pid)
{
- GError *error;
- char *device;
- gboolean res;
- proc_stat_t *xorg_stat;
+ GError *error;
+ char *device;
+ gboolean res;
+ CkProcessStat *xorg_stat;
error = NULL;
- res = proc_stat_new_for_pid (pid, &xorg_stat, &error);
+ res = ck_process_stat_new_for_unix_pid (pid, &xorg_stat, &error);
if (! res) {
if (error != NULL) {
g_warning ("stat on pid %d failed: %s", pid, error->message);
@@ -53,8 +53,8 @@ get_tty_for_pid (int pid)
return NULL;
}
- device = proc_stat_get_tty (xorg_stat);
- proc_stat_free (xorg_stat);
+ device = ck_process_stat_get_tty (xorg_stat);
+ ck_process_stat_free (xorg_stat);
return device;
}
@@ -84,7 +84,7 @@ get_peer_pid (int fd)
}
static Display *
-display_init (char *display_name)
+display_init (const char *display_name)
{
Display *xdisplay;