diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-10-07 13:21:48 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-10-07 13:21:48 -0700 |
commit | a99fbad09ab850e65ddd57e4d4488e4726295e14 (patch) | |
tree | 84db624bf35f486c4742532a320e1d48f16f523d | |
parent | 3bceaeb3192ca75a14854d614e1621d28fb82274 (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.h | 4 | ||||
-rw-r--r-- | src/register.c | 4 |
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; |