Pārlūkot izejas kodu

snmpstats: clean gcc warnings

hashTable.c:168:22: warning: variable ‘previousRecord’ set but not used [-Wunused-but-set-variable]
kamailioNet.c:973:18: warning: variable ‘value’ set but not used [-Wunused-but-set-variable]
snmpSIPRegUserLookupTable.c:462:25: warning: variable ‘var’ set but not used [-Wunused-but-set-variable]
snmpSIPStatusCodesTable.c:493:30: warning: variable ‘var’ set but not used [-Wunused-but-set-variable]
Victor Seva 10 gadi atpakaļ
vecāks
revīzija
c051cb8da9

+ 0 - 2
modules/snmpstats/hashTable.c

@@ -165,7 +165,6 @@ void deleteUser(hashSlot_t *theTable, char *aor, int hashTableSize)
 	int hashIndex = calculateHashSlot(aor, hashTableSize);
 	int searchStringLength = strlen(aor);
 
-	aorToIndexStruct_t *previousRecord = theTable[hashIndex].first;
 	aorToIndexStruct_t *currentRecord  = theTable[hashIndex].first;
 
 	while (currentRecord != NULL) {
@@ -227,7 +226,6 @@ void deleteUser(hashSlot_t *theTable, char *aor, int hashTableSize)
 		}
 
 		/* Advance to the next records. */
-		previousRecord = currentRecord;
 		currentRecord = currentRecord->next;
 	}
 

+ 0 - 5
modules/snmpstats/kamailioNet.c

@@ -977,11 +977,6 @@ handle_kamailioNetTcpKeepIdle(netsnmp_mib_handler *handler,
     
     switch(reqinfo->mode) {
 
-    struct cfg_group_tcp t;
-    unsigned int value;
-
-    tcp_options_get(&t);
-    value = t.con_lifetime;
         case MODE_GET:
             snmp_set_var_typed_value(requests->requestvb, ASN_INTEGER,
 			 (u_char *) &value, sizeof(int));

+ 0 - 3
modules/snmpstats/snmpSIPRegUserLookupTable.c

@@ -459,15 +459,12 @@ void kamailioSIPRegUserLookupTable_set_reserve2( netsnmp_request_group *rg )
 
 	netsnmp_request_group_item *current;
 
-	netsnmp_variable_list *var;
-
 	int rc;
 
 	rg->rg_void = rg->list->ri;
 
 	for( current = rg->list; current; current = current->next ) {
 
-		var = current->ri->requestvb;
 		rc = SNMP_ERR_NOERROR;
 
 		switch(current->tri->colnum) 

+ 0 - 2
modules/snmpstats/snmpSIPStatusCodesTable.c

@@ -490,7 +490,6 @@ void kamailioSIPStatusCodesTable_set_reserve2( netsnmp_request_group *rg )
 		(kamailioSIPStatusCodesTable_context *)rg->undo_info;
 
 	netsnmp_request_group_item *current;
-	netsnmp_variable_list      *var;
 
 	int rc;
 
@@ -498,7 +497,6 @@ void kamailioSIPStatusCodesTable_set_reserve2( netsnmp_request_group *rg )
 
 	for( current = rg->list; current; current = current->next ) {
 
-		var = current->ri->requestvb;
 		rc = SNMP_ERR_NOERROR;
 
 		switch(current->tri->colnum)