From 268aa40a02d2331093d97bdcba629d99d27e4e5d Mon Sep 17 00:00:00 2001 From: nbk Date: Sat, 5 Jan 2008 18:56:32 +0000 Subject: [PATCH] Fix some compiler warnings. --- src/modules/rlm_ippool/rlm_ippool.c | 6 +++--- src/modules/rlm_ippool/rlm_ippool_tool.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/rlm_ippool/rlm_ippool.c b/src/modules/rlm_ippool/rlm_ippool.c index 91b941b..6c89674 100644 --- a/src/modules/rlm_ippool/rlm_ippool.c +++ b/src/modules/rlm_ippool/rlm_ippool.c @@ -173,7 +173,7 @@ static int ippool_instantiate(CONF_SECTION *conf, void **instance) int i; unsigned j; const char *cli = "0"; - char *pool_name = NULL; + const char *pool_name = NULL; /* * Set up a storage area for instance data @@ -320,7 +320,7 @@ static int ippool_accounting(void *instance, REQUEST *request) int num = 0; VALUE_PAIR *vp; char str[32]; - char key_str[17]; + uint8_t key_str[17]; char hex_str[35]; char xlat_str[MAX_STRING_LEN]; FR_MD5_CTX md5_context; @@ -448,7 +448,7 @@ static int ippool_postauth(void *instance, REQUEST *request) VALUE_PAIR *vp; char *cli = NULL; char str[32]; - char key_str[17]; + uint8_t key_str[17]; char hex_str[35]; char xlat_str[MAX_STRING_LEN]; FR_MD5_CTX md5_context; diff --git a/src/modules/rlm_ippool/rlm_ippool_tool.c b/src/modules/rlm_ippool/rlm_ippool_tool.c index 80ec830..de3f9aa 100755 --- a/src/modules/rlm_ippool/rlm_ippool_tool.c +++ b/src/modules/rlm_ippool/rlm_ippool_tool.c @@ -105,7 +105,7 @@ void addip(char *sessiondbname,char *indexdbname,char *ipaddress, char* NASname, old_ippool_key old_key; ippool_info entry; struct in_addr ipaddr; - char key_str[17]; + uint8_t key_str[17]; char hex_str[35]; int num=0; int mppp=0; @@ -389,7 +389,7 @@ void tonewformat(char *sessiondbname,char *newsessiondbname){ datum key_datum,keynext_datum,data_datum,newkey_datum; old_ippool_key old_key; ippool_key key; - char key_str[17]; + uint8_t key_str[17]; char hex_str[35]; int rcode; @@ -445,7 +445,7 @@ void viewdb(char *sessiondbname,char *indexdbname,char *ipaddress, int old) { ippool_info info; struct in_addr ipaddr; int num; - char key_str[17]; + uint8_t key_str[17]; char hex_str[35]; char *ip; int mode=GDBM_READER; -- 2.1.4