[gdm] worker: fix compiler warning
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] worker: fix compiler warning
- Date: Mon, 1 Oct 2012 21:58:32 +0000 (UTC)
commit 0fbe5f38740cb59d542241dae3457d6c0dcf2880
Author: Ray Strode <rstrode redhat com>
Date: Mon Oct 1 17:51:23 2012 -0400
worker: fix compiler warning
daemon/gdm-session-worker.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index b1809f1..3f250f9 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1530,10 +1530,10 @@ gdm_session_worker_accredit_user (GdmSessionWorker *worker,
return ret;
}
-static char **
+static const char * const *
gdm_session_worker_get_environment (GdmSessionWorker *worker)
{
- return pam_getenvlist (worker->priv->pam_handle);
+ return (const char * const *) pam_getenvlist (worker->priv->pam_handle);
}
static void
@@ -1775,7 +1775,7 @@ gdm_session_worker_start_session (GdmSessionWorker *worker,
}
if (session_pid == 0) {
- char **environment;
+ const char * const * environment;
char *kerberos_cache;
char *home_dir;
int fd;
@@ -1869,6 +1869,7 @@ gdm_session_worker_start_session (GdmSessionWorker *worker,
gdm_session_execute (worker->priv->arguments[0],
worker->priv->arguments,
+ (char **)
environment,
TRUE);
@@ -2693,7 +2694,7 @@ reauthentication_request_new (GdmSessionWorker *worker,
GDBusMethodInvocation *invocation)
{
ReauthenticationRequest *request;
- char **environment;
+ const char * const * environment;
char *address;
environment = gdm_session_worker_get_environment (worker);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]