Module: kamailio
Branch: master
Commit: 93f74c228bec1ad291d0ef5c8353747315556f7d
URL:
https://github.com/kamailio/kamailio/commit/93f74c228bec1ad291d0ef5c8353747…
Author: Dmitriy N. Borisov <bordmi(a)rarus.ru>
Committer: Dmitriy N. Borisov <bordmi(a)rarus.ru>
Date: 2015-01-22T14:57:58+03:00
Comments style correction
---
Modified: modules/auth_radius/sterman.c
---
Diff:
https://github.com/kamailio/kamailio/commit/93f74c228bec1ad291d0ef5c8353747…
Patch:
https://github.com/kamailio/kamailio/commit/93f74c228bec1ad291d0ef5c8353747…
---
diff --git a/modules/auth_radius/sterman.c b/modules/auth_radius/sterman.c
index 5b51866..da644dc 100644
--- a/modules/auth_radius/sterman.c
+++ b/modules/auth_radius/sterman.c
@@ -89,37 +89,37 @@ static inline int extract_avp(VALUE_PAIR* vp, unsigned short *flags,
r = NULL;
errno = 0;
if ( p == vp->strvalue && q ) {
- // int name and str value
+ /* int name and str value */
*flags |= AVP_VAL_STR;
name->n = strtol(++p,&q,10);
value->s.s = ++q;
value->s.len = strlen(q);
} else if ( p && !r && p > vp->strvalue && !q ) {
- // str name and int value
+ /* str name and int value */
*flags |= AVP_NAME_STR;
name->s.len = p - vp->strvalue;
name->s.s = vp->strvalue;
value->n = strtol(++p,&r,10);
} else if ( p && p != r && !q ) {
- // int name and int vale
+ /* int name and int vale */
name->n = strtol(++p,&q,10);
value->n = strtol(++r,&q,10);
} else if ( (!p || p > q) && q ) {
- // str name and str value
+ /* str name and str value */
*flags |= AVP_VAL_STR|AVP_NAME_STR;
name->s.len = q - vp->strvalue;
name->s.s = vp->strvalue;
value->s.len = strlen(++q);
value->s.s = q;
- } else // error - unknown
+ } else /* error - unknown */
return 0;
if ( errno != 0 )
return 0;
} else if (vp->type == PW_TYPE_STRING) {
*flags |= AVP_VAL_STR|AVP_NAME_STR;
- // if start of value is the name of value
+ /* if start of value is the name of value */
if (vp->strvalue == strstr(vp->strvalue,vp->name))
- // then get value after name + one char delimiter
+ /* then get value after name + one char delimiter */
p = vp->strvalue + strlen(vp->name) + sizeof(char);
else
p = vp->strvalue;