summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 00:36:28 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-20 13:43:09 -0700
commit9561eca1ad28afee6dcd0aebea3dd20a154ec481 (patch)
tree9cf31d23bf76af90d732b6439af60e4fdea50703
parent1b1cf8072b2559e15ac440d5484a29a81d6918c6 (diff)
downloadxorg-lib-libICE-9561eca1ad28afee6dcd0aebea3dd20a154ec481.tar.gz
Constify filename argument to IceLockAuthFile & IceUnlockAuthFile
Needed to fix const string warnings in iceauth - functions already copy provided arguments to temporary local buffer for modifications. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--include/X11/ICE/ICEutil.h4
-rw-r--r--src/authutil.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/X11/ICE/ICEutil.h b/include/X11/ICE/ICEutil.h
index 9c6b12f..dbf1490 100644
--- a/include/X11/ICE/ICEutil.h
+++ b/include/X11/ICE/ICEutil.h
@@ -81,14 +81,14 @@ extern char *IceAuthFileName (
);
extern int IceLockAuthFile (
- char * /* file_name */,
+ const char * /* file_name */,
int /* retries */,
int /* timeout */,
long /* dead */
);
extern void IceUnlockAuthFile (
- char * /* file_name */
+ const char * /* file_name */
);
extern IceAuthFileEntry *IceReadAuthFileEntry (
diff --git a/src/authutil.c b/src/authutil.c
index ad29dbb..96ce3a0 100644
--- a/src/authutil.c
+++ b/src/authutil.c
@@ -128,7 +128,7 @@ IceAuthFileName (void)
int
IceLockAuthFile (
- char *file_name,
+ const char *file_name,
int retries,
int timeout,
long dead
@@ -204,7 +204,7 @@ IceLockAuthFile (
void
IceUnlockAuthFile (
- char *file_name
+ const char *file_name
)
{
#ifndef WIN32