node = node_create(item);
list_add(IRCItem->channels, node);
- tmp = (void *) item;
+ tmp = item;
}
#line 1841 "config-parser.c" /* yacc.c:1646 */
break;
node = node_create(item);
list_add(UserItemList, node);
- tmp = (void *) item;
+ tmp = item;
}
#line 1893 "config-parser.c" /* yacc.c:1646 */
break;
case 90:
#line 359 "config-parser.y" /* yacc.c:1646 */
{
- struct UserConf *item = (struct UserConf *) tmp;
-
+ struct UserConf *item = tmp;
node_t *node;
- node = node_create((void *) xstrdup((yyvsp[-1].string)));
+
+ node = node_create(xstrdup((yyvsp[-1].string)));
list_add(item->masks, node);
}
case 91:
#line 369 "config-parser.y" /* yacc.c:1646 */
{
- struct UserConf *item = (struct UserConf *) tmp;
-
+ struct UserConf *item = tmp;
node_t *node;
- node = node_create((void *) xstrdup((yyvsp[-1].string)));
+
+ node = node_create(xstrdup((yyvsp[-1].string)));
list_add(item->scanners, node);
}
node = node_create(item);
list_add(ScannerItemList, node);
- tmp = (void *) item;
+ tmp = item;
}
#line 1967 "config-parser.c" /* yacc.c:1646 */
break;
case 106:
#line 441 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
MyFree(item->name);
item->name = xstrdup((yyvsp[-1].string));
}
case 107:
#line 448 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
MyFree(item->vhost);
item->vhost = xstrdup((yyvsp[-1].string));
}
case 108:
#line 455 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
MyFree(item->target_ip);
item->target_ip = xstrdup((yyvsp[-1].string));
}
case 109:
#line 462 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
node_t *node;
node = node_create((yyvsp[-1].string));
case 110:
#line 478 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->fd = (yyvsp[-1].number);
}
#line 2025 "config-parser.c" /* yacc.c:1646 */
case 111:
#line 484 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->target_port = (yyvsp[-1].number);
}
#line 2034 "config-parser.c" /* yacc.c:1646 */
case 112:
#line 490 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->timeout = (yyvsp[-1].number);
}
#line 2043 "config-parser.c" /* yacc.c:1646 */
case 113:
#line 496 "config-parser.y" /* yacc.c:1646 */
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->max_read = (yyvsp[-1].number);
}
#line 2052 "config-parser.c" /* yacc.c:1646 */
item->type = (yyvsp[-3].number);
item->port = (yyvsp[-1].number);
- item2 = (struct ScannerConf *) tmp;
+ item2 = tmp;
node = node_create(item);
list_add(item2->protocols, node);
node = node_create(item);
list_add(OpmItem->blacklists, node);
- tmp = (void *) item;
+ tmp = item;
}
#line 2121 "config-parser.c" /* yacc.c:1646 */
break;
node = node_create(item);
list_add(IRCItem->channels, node);
- tmp = (void *) item;
+ tmp = item;
}
CHANNEL '{' channel_items '}' ';';
node = node_create(item);
list_add(UserItemList, node);
- tmp = (void *) item;
+ tmp = item;
}
USER '{' user_items '}' ';' ;
user_mask: MASK '=' STRING ';'
{
- struct UserConf *item = (struct UserConf *) tmp;
-
+ struct UserConf *item = tmp;
node_t *node;
- node = node_create((void *) xstrdup($3));
+
+ node = node_create(xstrdup($3));
list_add(item->masks, node);
};
user_scanner: SCANNER '=' STRING ';'
{
- struct UserConf *item = (struct UserConf *) tmp;
-
+ struct UserConf *item = tmp;
node_t *node;
- node = node_create((void *) xstrdup($3));
+
+ node = node_create(xstrdup($3));
list_add(item->scanners, node);
};
node = node_create(item);
list_add(ScannerItemList, node);
- tmp = (void *) item;
+ tmp = item;
}
SCANNER '{' scanner_items '}' ';' ;
scanner_name: NAME '=' STRING ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
MyFree(item->name);
item->name = xstrdup($3);
};
scanner_vhost: VHOST '=' STRING ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
MyFree(item->vhost);
item->vhost = xstrdup($3);
};
scanner_target_ip: TARGET_IP '=' STRING ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
MyFree(item->target_ip);
item->target_ip = xstrdup($3);
};
scanner_target_string: TARGET_STRING '=' STRING ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
node_t *node;
node = node_create($3);
scanner_fd: FD '=' NUMBER ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->fd = $3;
};
scanner_target_port: TARGET_PORT '=' NUMBER ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->target_port = $3;
};
scanner_timeout: TIMEOUT '=' timespec ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->timeout = $3;
};
scanner_max_read: MAX_READ '=' sizespec ';'
{
- struct ScannerConf *item = (struct ScannerConf *) tmp;
+ struct ScannerConf *item = tmp;
item->max_read = $3;
};
item->type = $3;
item->port = $5;
- item2 = (struct ScannerConf *) tmp;
+ item2 = tmp;
node = node_create(item);
list_add(item2->protocols, node);
node = node_create(item);
list_add(OpmItem->blacklists, node);
- tmp = (void *) item;
+ tmp = item;
}
BLACKLIST '{' blacklist_items '}' ';';