summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-19 11:29:03 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-19 11:29:07 -0800
commit24d38c420d5d60c988f07dd25f7fa81171dac64f (patch)
tree47d34022ccbff9515e85ed47cf34794c19454df2 /auth.c
parente17c2f59266528dce1cfb71798dc6075b74839a3 (diff)
Fix some gcc -Wwrite-strings warnings
Many are unfixable at the moment due to the libXt API Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/auth.c b/auth.c
index da2cbb6..c8bc653 100644
--- a/auth.c
+++ b/auth.c
@@ -82,10 +82,10 @@ write_iceauth(FILE *addfp, FILE *removefp, IceAuthDataEntry *entry)
#ifndef HAS_MKSTEMP
static char *
-unique_filename(char *path, char *prefix)
+unique_filename(const char *path, const char *prefix)
#else
static char *
-unique_filename(char *path, char *prefix, int *pFd)
+unique_filename(const char *path, const char *prefix, int *pFd)
#endif
{
#ifndef HAS_MKSTEMP
@@ -133,7 +133,7 @@ SetAuthentication(int count, IceListenObj *listenObjs,
{
FILE *addfp = NULL;
FILE *removefp = NULL;
- char *path;
+ const char *path;
int original_umask;
char command[256];
int i;
@@ -143,10 +143,10 @@ SetAuthentication(int count, IceListenObj *listenObjs,
original_umask = umask (0077); /* disallow non-owner access */
- path = (char *) getenv ("SM_SAVE_DIR");
+ path = getenv ("SM_SAVE_DIR");
if (!path)
{
- path = (char *) getenv ("HOME");
+ path = getenv ("HOME");
if (!path)
path = ".";
}