projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59c4067
)
Fix compiler warnings
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 8 Oct 2010 09:29:15 +0000
(11:29 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 8 Oct 2010 14:58:58 +0000
(16:58 +0200)
src/modules/rlm_soh/rlm_soh.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_soh/rlm_soh.c
b/src/modules/rlm_soh/rlm_soh.c
index
46830a6
..
4cb7aad
100644
(file)
--- a/
src/modules/rlm_soh/rlm_soh.c
+++ b/
src/modules/rlm_soh/rlm_soh.c
@@
-38,14
+38,10
@@
typedef struct rlm_soh_t {
/*
* Not sure how to make this useful yet...
*/
/*
* Not sure how to make this useful yet...
*/
-static size_t soh_xlat(
void *instance, REQUEST *request, char *fmt, char *out, size_t outlen,
RADIUS_ESCAPE_STRING func) {
+static size_t soh_xlat(
UNUSED void *instance, REQUEST *request, char *fmt, char *out, size_t outlen, UNUSED
RADIUS_ESCAPE_STRING func) {
VALUE_PAIR* vp[6];
VALUE_PAIR* vp[6];
- char buf[256], *osvendor, *osname;
- rlm_soh_t *inst = instance;
-
-
- func = func; /* -Wunused */
+ const char *osname;
/* there will be no point unless SoH-Supported = yes
*
/* there will be no point unless SoH-Supported = yes
*
@@
-141,12
+137,11
@@
static int soh_instantiate(CONF_SECTION *conf, void **instance) {
return 0;
}
return 0;
}
-static int soh_postauth(void * instance, REQUEST *request) {
- rlm_soh_t *inst = instance;
- VALUE_PAIR *vp, *sohvp;
- int rv;
-
+static int soh_postauth(UNUSED void * instance, REQUEST *request)
+{
#ifdef WITH_DHCP
#ifdef WITH_DHCP
+ VALUE_PAIR *vp;
+
vp = pairfind(request->packet->vps, DHCP2ATTR(43));
if (vp) {
/*
vp = pairfind(request->packet->vps, DHCP2ATTR(43));
if (vp) {
/*
@@
-196,9
+191,9
@@
static int soh_postauth(void * instance, REQUEST *request) {
return RLM_MODULE_NOOP;
}
return RLM_MODULE_NOOP;
}
-static int soh_authorize(
void * instance, REQUEST *request) {
- rlm_soh_t *inst = instance;
- VALUE_PAIR *vp
, *sohvp
;
+static int soh_authorize(
UNUSED void * instance, REQUEST *request)
+{
+ VALUE_PAIR *vp;
int rv;
/* try to find the MS-SoH payload */
int rv;
/* try to find the MS-SoH payload */
@@
-210,7
+205,7
@@
static int soh_authorize(void * instance, REQUEST *request) {
RDEBUG("SoH radius VP found");
/* decode it */
RDEBUG("SoH radius VP found");
/* decode it */
- rv = soh_verify(request, request->packet->vps, vp->vp_
strvalue
, vp->length);
+ rv = soh_verify(request, request->packet->vps, vp->vp_
octets
, vp->length);
return RLM_MODULE_OK;
}
return RLM_MODULE_OK;
}