diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-03-05 15:24:56 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-03-05 15:24:56 -0500 |
commit | 7dfb9732b27778722214531d0c17b7e50e8a2fe1 (patch) | |
tree | 751f1ee51171a3e5606ab2499ff06312743ad507 /tools/linux/ck-collect-session-info.c | |
parent | ed0e87a5f66d88d6f388229e1bf71632bb0f1308 (diff) |
rename host-name to remote-host-name to make it more intuitive
Diffstat (limited to 'tools/linux/ck-collect-session-info.c')
-rw-r--r-- | tools/linux/ck-collect-session-info.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/linux/ck-collect-session-info.c b/tools/linux/ck-collect-session-info.c index cee5ccc..ec6dda2 100644 --- a/tools/linux/ck-collect-session-info.c +++ b/tools/linux/ck-collect-session-info.c @@ -41,7 +41,7 @@ typedef struct { char *x11_display_device; char *x11_display; gboolean x11_can_connect; - char *hostname; + char *remote_host_name; char *session_type; gboolean is_local; gboolean is_local_is_set; @@ -53,7 +53,7 @@ session_info_free (SessionInfo *si) g_free (si->display_device); g_free (si->x11_display_device); g_free (si->x11_display); - g_free (si->hostname); + g_free (si->remote_host_name); g_free (si->session_type); g_free (si); } @@ -277,8 +277,8 @@ fill_x11_info (SessionInfo *si) si->is_local = TRUE; si->is_local_is_set = TRUE; - g_free (si->hostname); - si->hostname = g_strdup ("localhost"); + g_free (si->remote_host_name); + si->remote_host_name = NULL; } static gboolean @@ -331,8 +331,8 @@ print_session_info (SessionInfo *si) if (si->session_type != NULL) { printf ("session-type = %s\n", si->session_type); } - if (si->hostname != NULL) { - printf ("host-name = %s\n", si->hostname); + if (si->remote_host_name != NULL) { + printf ("remote-host-name = %s\n", si->remote_host_name); } if (si->is_local_is_set == TRUE) { printf ("is-local = %s\n", si->is_local ? "true" : "false"); |