65 |
|
static list_t *MASKS = NULL; /* Associative list of masks->scanners */ |
66 |
|
|
67 |
|
|
68 |
– |
/* Negative Cache */ |
69 |
– |
struct cnode *nc_head; |
70 |
– |
|
71 |
– |
|
68 |
|
/* Function declarations */ |
69 |
< |
|
70 |
< |
struct scan_struct *scan_create(char **, char *); |
75 |
< |
void scan_free(struct scan_struct *); |
69 |
> |
static struct scan_struct *scan_create(char *[], char *); |
70 |
> |
static void scan_free(struct scan_struct *); |
71 |
|
static void scan_irckline(struct scan_struct *, const char *, const char *); |
72 |
|
static void scan_negative(struct scan_struct *); |
73 |
|
static void scan_log(OPM_REMOTE_T *); |
301 |
|
* |
302 |
|
*/ |
303 |
|
void |
304 |
< |
scan_connect(char **user, char *msg) |
304 |
> |
scan_connect(char *user[], char *msg) |
305 |
|
{ |
306 |
|
struct sockaddr_in ip; |
307 |
|
node_t *p, *p2; |
424 |
|
* Return: Pointer to new scan_struct |
425 |
|
* |
426 |
|
*/ |
427 |
< |
struct scan_struct * |
428 |
< |
scan_create(char **user, char *msg) |
427 |
> |
static struct scan_struct * |
428 |
> |
scan_create(char *user[], char *msg) |
429 |
|
{ |
430 |
|
struct scan_struct *ss = xcalloc(sizeof *ss); |
431 |
|
|
450 |
|
* |
451 |
|
* Return: NONE |
452 |
|
*/ |
453 |
< |
void |
453 |
> |
static void |
454 |
|
scan_free(struct scan_struct *ss) |
455 |
|
{ |
456 |
|
if (ss == NULL) |
487 |
|
ss->irc_nick, ss->irc_username, ss->irc_hostname); |
488 |
|
|
489 |
|
/* Scan was a negative */ |
490 |
< |
if (!ss->positive) |
490 |
> |
if (ss->positive == 0) |
491 |
|
scan_negative(ss); |
492 |
|
} |
493 |
|
|