mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 17:29:13 +00:00
Removed some warnings
This commit is contained in:
parent
4a5948ff27
commit
29906527a8
6 changed files with 15 additions and 6 deletions
|
|
@ -261,9 +261,10 @@ int16_t AddressTree::addAddress(char *_net) {
|
|||
/* Format: 131.114.21.0/24,10.0.0.0/255.0.0.0 */
|
||||
bool AddressTree::addAddresses(char *rule) {
|
||||
char *net = strtok(rule, ",");
|
||||
int16_t rc = -1;
|
||||
|
||||
while(net != NULL) {
|
||||
int16_t rc;
|
||||
|
||||
if((rc = addAddress(net)) < 0) return false;
|
||||
net = strtok(NULL, ",");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue