summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-10-07 13:21:48 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-10-07 13:21:48 -0700
commita99fbad09ab850e65ddd57e4d4488e4726295e14 (patch)
tree84db624bf35f486c4742532a320e1d48f16f523d
parent3bceaeb3192ca75a14854d614e1621d28fb82274 (diff)
Constify some arguments in libICE to clear warnings in libSM
This patch avoids the gcc (3.4.6) warnings: ../../libSM-1.0.3/src/sm_client.c:104: warning: passing arg 7 of `IceRegisterForProtocolSetup' from incompatible pointer type ../../libSM-1.0.3/src/sm_manager.c:168: warning: passing arg 7 of `IceRegisterForProtocolReply' from incompatible pointer type when compiling libSM
-rw-r--r--include/X11/ICE/ICElib.h4
-rw-r--r--src/register.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/X11/ICE/ICElib.h b/include/X11/ICE/ICElib.h
index eb7a3aa..5950ecd 100644
--- a/include/X11/ICE/ICElib.h
+++ b/include/X11/ICE/ICElib.h
@@ -214,7 +214,7 @@ extern int IceRegisterForProtocolSetup (
int /* versionCount */,
IcePoVersionRec * /* versionRecs */,
int /* authCount */,
- char ** /* authNames */,
+ const char ** /* authNames */,
IcePoAuthProc * /* authProcs */,
IceIOErrorProc /* IOErrorProc */
);
@@ -226,7 +226,7 @@ extern int IceRegisterForProtocolReply (
int /* versionCount */,
IcePaVersionRec * /* versionRecs */,
int /* authCount */,
- char ** /* authNames */,
+ const char ** /* authNames */,
IcePaAuthProc * /* authProcs */,
IceHostBasedAuthProc /* hostBasedAuthProc */,
IceProtocolSetupProc /* protocolSetupProc */,
diff --git a/src/register.c b/src/register.c
index bcf95a2..501725f 100644
--- a/src/register.c
+++ b/src/register.c
@@ -43,7 +43,7 @@ char *release;
int versionCount;
IcePoVersionRec *versionRecs;
int authCount;
-char **authNames;
+const char **authNames;
IcePoAuthProc *authProcs;
IceIOErrorProc IOErrorProc;
@@ -144,7 +144,7 @@ char *release;
int versionCount;
IcePaVersionRec *versionRecs;
int authCount;
-char **authNames;
+const char **authNames;
IcePaAuthProc *authProcs;
IceHostBasedAuthProc hostBasedAuthProc;
IceProtocolSetupProc protocolSetupProc;