summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2009-03-27 14:58:26 +0000
committerRay Strode <halfline@src.gnome.org>2009-03-27 14:58:26 +0000
commit92e608bd0f3807314c45ee5f5daf6ba781c27d58 (patch)
tree23c735a46381eb655c3e10e6ab3a40cc225e0f51 /common
parent4ef99a79de13f9680b5ef690752df720e5c6d816 (diff)
downloadgdm-92e608bd0f3807314c45ee5f5daf6ba781c27d58.tar.gz
Fix assorted compiler warnings.
2009-03-27 Ray Strode <rstrode@redhat.com> Fix assorted compiler warnings. * gui/simple-greeter/gdm-user-chooser-widget.c (add_user), (get_stock_person_pixbuf), (get_logged_in_pixbuf): Add some widget casts. * gui/simple-greeter/gdm-languages.c (make_codeset_canonical_for_locale): remove unused variable * gui/simple-greeter/gdm-layouts.c: Make the layout member of LayoutData const char *. * gui/simple-greeter/gdm-remote-login-window.c (xserver_died), (stop_xserver): drop unused functions * gui/simple-greeter/gdm-language-option-widget.c (gdm_language_option_widget_set_current_language): drop misplaced & * gui/simple-greeter/gdm-user.c (curved_rectangle): don't assume width == 0, height == 0 conditions will work reliably, instead check for < EPSILON * common/gdm-common.[hc] (gdm_make_temp_dir): Make the constness of the return value and inout argument reflect the way it's being called. * daemon/gdm-display-access-file.c (_create_xauth_file_for_user): Make dir_name const * daemon/gdm-display.c (gdm_display_real_manage): drop unused variables svn path=/trunk/; revision=6796
Diffstat (limited to 'common')
-rw-r--r--common/gdm-common.c4
-rw-r--r--common/gdm-common.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/common/gdm-common.c b/common/gdm-common.c
index 278ed1e9..b428f5b8 100644
--- a/common/gdm-common.c
+++ b/common/gdm-common.c
@@ -37,8 +37,8 @@
#include "mkdtemp.h"
#endif
-char *
-gdm_make_temp_dir (const char *template)
+const char *
+gdm_make_temp_dir (char *template)
{
return mkdtemp (template);
}
diff --git a/common/gdm-common.h b/common/gdm-common.h
index 328d511c..191bd70a 100644
--- a/common/gdm-common.h
+++ b/common/gdm-common.h
@@ -34,7 +34,7 @@ int gdm_wait_on_pid (int pid);
int gdm_signal_pid (int pid,
int signal);
-char * gdm_make_temp_dir (const char *template);
+const char * gdm_make_temp_dir (char *template);
gboolean gdm_string_hex_encode (const GString *source,
int start,