ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/scan.c
(Generate patch)

Comparing hopm/branches/1.0.x/src/scan.c (file contents):
Revision 5320 by michael, Mon Jan 5 19:27:13 2015 UTC vs.
Revision 5321 by michael, Tue Jan 6 14:59:31 2015 UTC

# Line 65 | Line 65 | static list_t *SCANNERS = NULL;   /* Lis
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 *);
# Line 306 | Line 301 | scan_init(void)
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;
# Line 429 | Line 424 | scan_connect(char **user, char *msg)
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  
# Line 455 | Line 450 | scan_create(char **user, char *msg)
450   *
451   * Return: NONE
452   */
453 < void
453 > static void
454   scan_free(struct scan_struct *ss)
455   {
456    if (ss == NULL)
# Line 492 | Line 487 | scan_checkfinished(struct scan_struct *s
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines