/*
* Compare a Connect-Info and a Connect-Rate
*/
-static int connectcmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check,
- VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
+static int connectcmp(void *instance,
+ REQUEST *req UNUSED,
+ VALUE_PAIR *request,
+ VALUE_PAIR *check,
+ VALUE_PAIR *check_pairs,
+ VALUE_PAIR **reply_pairs)
{
int rate;
/*
* Compare a portno with a range.
*/
-static int portcmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check,
+static int portcmp(void *instance,
+ REQUEST *req UNUSED, VALUE_PAIR *request, VALUE_PAIR *check,
VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
{
char buf[MAX_STRING_LEN];
* - if PW_STRIP_USER_NAME is not present in check_pairs,
* add a PW_STRIPPED_USER_NAME to the request.
*/
-static int presufcmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check,
+static int presufcmp(void *instance,
+ REQUEST *req UNUSED,
+ VALUE_PAIR *request, VALUE_PAIR *check,
VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
{
VALUE_PAIR *vp;
* do the comparison against when the packet came in, not now,
* and have one less system call to do.
*/
-static int timecmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check,
+static int timecmp(void *instance,
+ REQUEST *req UNUSED,
+ VALUE_PAIR *request, VALUE_PAIR *check,
VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
{
instance = instance;
* doing the lookup only ONCE, and storing the result
* in check->lvalue...
*/
-static int attrcmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check,
- VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
+static int attrcmp(void *instance,
+ REQUEST *req UNUSED,
+ VALUE_PAIR *request, VALUE_PAIR *check,
+ VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
{
VALUE_PAIR *pair;
DICT_ATTR *dict;
/*
* Compare the expiration date.
*/
-static int expirecmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check,
+static int expirecmp(void *instance, REQUEST *req UNUSED,
+ VALUE_PAIR *request, VALUE_PAIR *check,
VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
{
time_t now;
*/
now = time(NULL);
- if (now <= check->lvalue) {
+ if (now <= (signed)check->lvalue) {
return 0;
}
/*
* Compare the request packet type.
*/
-static int packetcmp(void *instance, REQUEST *req, VALUE_PAIR *request,
+static int packetcmp(void *instance UNUSED, REQUEST *req,
+ VALUE_PAIR *request UNUSED,
VALUE_PAIR *check,
- VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
+ VALUE_PAIR *check_pairs UNUSED,
+ VALUE_PAIR **reply_pairs UNUSED)
{
if (req->packet->code == check->lvalue) {
return 0;
/*
* Compare the response packet type.
*/
-static int responsecmp(void *instance, REQUEST *req, VALUE_PAIR *request,
- VALUE_PAIR *check,
- VALUE_PAIR *check_pairs, VALUE_PAIR **reply_pairs)
+static int responsecmp(void *instance UNUSED,
+ REQUEST *req,
+ VALUE_PAIR *request UNUSED,
+ VALUE_PAIR *check,
+ VALUE_PAIR *check_pairs UNUSED,
+ VALUE_PAIR **reply_pairs UNUSED)
{
if (req->reply->code == check->lvalue) {
return 0;