- scan.c: removed junk in scan_negotiation_failed() and scan_timeout(); constification
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 17 Jul 2015 11:29:29 +0000 (11:29 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 17 Jul 2015 11:29:29 +0000 (11:29 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6286 82007160-df01-0410-b94d-b575c5fd34c7

src/scan.c

index 96d5c1c0548b240a7eb25df45c7c5e8698494c09..4553c76b00c1dc8894b3165f154e966761e41d8a 100644 (file)
@@ -584,26 +584,15 @@ scan_open_proxy(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *data)
 static void
 scan_negotiation_failed(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *data)
 {
-//struct scan_struct *ss;
-  struct scanner_struct *scs;
+  const struct scanner_struct *scs = data;
 
   /* Record that a scan happened */
   scan_log(remote);
 
-  scs = data;
-//ss = remote->data;
-
   if (OPT_DEBUG)
     log_printf("SCAN -> Negotiation failed %s:%d (%s) [%s] (%d bytes read)",
-               remote->ip, remote->port, scan_gettype(remote->protocol),
-               scs->name, remote->bytes_read);
-/*
-  if (ss->manual_target)
-    irc_send("PRIVMSG %s :CHECK -> Negotiation failed %s:%d (%s) [%s] "
-             "(%d bytes read)", ss->manual_target->name, remote->ip,
-             remote->port, scan_gettype(remote->protocol), scs->name,
-             remote->bytes_read);
-*/
+               remote->ip, remote->port, scan_gettype(remote->protocol), scs->name,
+               remote->bytes_read);
 }
 
 /* scan_timeout CALLBACK
@@ -620,27 +609,15 @@ scan_negotiation_failed(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void
 static void
 scan_timeout(OPM_T *scanner, OPM_REMOTE_T *remote, int notused, void *data)
 {
-//struct scan_struct *ss;
-  struct scanner_struct *scs;
+  const struct scanner_struct *scs = data;
 
   /* Record that a scan happened */
   scan_log(remote);
 
-  scs = data;
-//ss = remote->data;
-
   if (OPT_DEBUG)
     log_printf("SCAN -> Negotiation timed out %s:%d (%s) [%s] (%d bytes read)",
-               remote->ip, remote->port,
-               scan_gettype(remote->protocol), scs->name,
+               remote->ip, remote->port, scan_gettype(remote->protocol), scs->name,
                remote->bytes_read);
-/*
-  if (ss->manual_target)
-    irc_send("PRIVMSG %s :CHECK -> Negotiation timed out %s:%d (%s) [%s] "
-             "(%d bytes read)", ss->manual_target->name, remote->ip,
-             remote->port, scan_gettype(remote->protocol), scs->name,
-             remote->bytes_read);
-*/
 }
 
 /* scan_end CALLBACK