[trivial PATCH 14/22] [otp_radstate.c] eliminate build warnings

Wang Tinggong wangtinggong at gmail.com
Mon Feb 1 18:29:40 CET 2010


Signed-off-by: Wang Tinggong <wangtinggong at gmail.com>
---
 src/modules/rlm_otp/otp_radstate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/rlm_otp/otp_radstate.c b/src/modules/rlm_otp/otp_radstate.c
index b896413..04adff2 100644
--- a/src/modules/rlm_otp/otp_radstate.c
+++ b/src/modules/rlm_otp/otp_radstate.c
@@ -142,7 +142,7 @@ otp_gen_state(char rad_state[OTP_MAX_RADSTATE_LEN],
   if (rad_state) {
     (void) sprintf(rad_state, "0x");
     p = rad_state + 2;
-    otp_x2a(state, strlen(state), p);
+    otp_x2a((unsigned char*)state, strlen(state), p);
   }
 
   if (raw_state)
-- 
1.6.0.6



More information about the Freeradius-Devel mailing list