]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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 48c67b0b24ee0f21d46f2527acb7122b5c8a6cb1..f2bebb84786847a19f5ec9fb41321b6620795ba3 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 7c842dbf81c1b0698adc515d4f72f842a8ee49af..370693aed3a68e6aa878c65af2994e91022fa663 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 b93ccf3d7400cd2011422881c2559853328094d1..6108c29defecf0c12361fdfe9addfec1d062e7f7 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 85a5967c8e027ecea8490e8c098e9008ced33711..155ac57b6dab5e06e645bb6389c1526bd9f7be10 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 3127df70834e06bf6e03158a3119c1c45d131ab8..d04007c8373662bcf5925452048e6889ebb70f05 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;