Remove compile warnings
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 22:10:28 +0000 (17:10 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 22:10:28 +0000 (17:10 -0500)
src/modules/rlm_exec/rlm_exec.c
src/modules/rlm_expiration/rlm_expiration.c
src/modules/rlm_expr/rlm_expr.c
src/modules/rlm_mschap/rlm_mschap.c
src/modules/rlm_soh/rlm_soh.c

index 48c67b0..f2bebb8 100644 (file)
@@ -31,7 +31,7 @@ RCSID("$Id$")
  *     Define a structure for our module configuration.
  */
 typedef struct rlm_exec_t {
-       char            *xlat_name;
+       const char              *xlat_name;
        int             bare;
        int             wait;
        char            *program;
index 7c842db..370693a 100644 (file)
@@ -136,7 +136,7 @@ static int expirecmp(void *instance, REQUEST *req,
 }
 
 
-static int expiration_detach(void *instance)
+static int expiration_detach(UNUSED void *instance)
 {
        paircompare_unregister(PW_EXPIRATION, expirecmp);
        return 0;
index b93ccf3..6108c29 100644 (file)
@@ -37,7 +37,7 @@ RCSID("$Id$")
  *     Define a structure for our module configuration.
  */
 typedef struct rlm_expr_t {
-       char *xlat_name;
+       const char *xlat_name;
        char *allowed_chars;
 } rlm_expr_t;
 
index 85a5967..155ac57 100644 (file)
@@ -143,7 +143,7 @@ typedef struct rlm_mschap_t {
         int require_strong;
         int with_ntdomain_hack;        /* this should be in another module */
        char *passwd_file;
-       char *xlat_name;
+       const char *xlat_name;
        char *ntlm_auth;
        char *ntlm_cpw;
        char *ntlm_cpw_username;
index 3127df7..d04007c 100644 (file)
@@ -30,7 +30,7 @@ RCSID("$Id$")
 
 
 typedef struct rlm_soh_t {
-       char *xlat_name;
+       const char *xlat_name;
        int dhcp;
 } rlm_soh_t;