summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-09 21:55:17 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-11 19:59:59 -0800
commit902a52ea9d7b6e6f56f7023009859072854a0fc7 (patch)
tree792979e7b747a1ada6d2641a8aa75246c0db793b
parent9ff1f97e46903f8f83363f07cf021989bfa6a9f0 (diff)
constify arguments to IceGetAuthFileEntry
Needed to clear gcc -Wwrite-strings warnings in callers Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--doc/ICElib.xml6
-rw-r--r--include/X11/ICE/ICEutil.h6
-rw-r--r--src/authutil.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/doc/ICElib.xml b/doc/ICElib.xml
index 694afcd..60d9dbe 100644
--- a/doc/ICElib.xml
+++ b/doc/ICElib.xml
@@ -4430,9 +4430,9 @@ protocol_name/network_id/auth_name tuple, use
<funcsynopsis id='IceGetAuthFileEntry'>
<funcprototype>
<funcdef>IceAuthFileEntry<function> *IceGetAuthFileEntry</function></funcdef>
- <paramdef>char<parameter> *protocol_name</parameter></paramdef>
- <paramdef>char<parameter> *network_id</parameter></paramdef>
- <paramdef>char<parameter> *auth_name</parameter></paramdef>
+ <paramdef>const char *<parameter>protocol_name</parameter></paramdef>
+ <paramdef>const char *<parameter>network_id</parameter></paramdef>
+ <paramdef>const char *<parameter>auth_name</parameter></paramdef>
</funcprototype>
</funcsynopsis>
diff --git a/include/X11/ICE/ICEutil.h b/include/X11/ICE/ICEutil.h
index 2852931..9c6b12f 100644
--- a/include/X11/ICE/ICEutil.h
+++ b/include/X11/ICE/ICEutil.h
@@ -105,9 +105,9 @@ extern Status IceWriteAuthFileEntry (
);
extern IceAuthFileEntry *IceGetAuthFileEntry (
- char * /* protocol_name */,
- char * /* network_id */,
- char * /* auth_name */
+ const char * /* protocol_name */,
+ const char * /* network_id */,
+ const char * /* auth_name */
);
extern char *IceGenerateMagicCookie (
diff --git a/src/authutil.c b/src/authutil.c
index 747cacc..6c00482 100644
--- a/src/authutil.c
+++ b/src/authutil.c
@@ -338,9 +338,9 @@ IceWriteAuthFileEntry (
IceAuthFileEntry *
IceGetAuthFileEntry (
- char *protocol_name,
- char *network_id,
- char *auth_name
+ const char *protocol_name,
+ const char *network_id,
+ const char *auth_name
)
{
FILE *auth_file;