Reimplemented view: interface, and Paginator code.

Minor code cleanup
This commit is contained in:
Luca 2016-08-18 13:44:24 +02:00
parent 650ce6e202
commit 274921ee5c
34 changed files with 809 additions and 359 deletions

View file

@ -133,11 +133,11 @@ bool GenericHash::remove(GenericHashEntry *h) {
/* ************************************ */
void GenericHash::walk(bool (*walker)(GenericHashEntry *h, void *user_data), void *user_data) {
bool GenericHash::walk(bool (*walker)(GenericHashEntry *h, void *user_data), void *user_data) {
bool found = false;
if(ntop->getGlobals()->isShutdown())
return;
return(found);
for(u_int hash_id = 0; hash_id < num_hashes; hash_id++) {
if(table[hash_id] != NULL) {
@ -164,6 +164,8 @@ void GenericHash::walk(bool (*walker)(GenericHashEntry *h, void *user_data), voi
break;
}
}
return(found);
}
/* ************************************ */