From: michael Date: Fri, 17 Jul 2015 11:29:12 +0000 (+0000) Subject: - scan.c: removed junk in scan_negotiation_failed() and scan_timeout(); constification X-Git-Tag: 1.1.0~10 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=b3bae3518346a5fe2a9dfa61fb3bb89b3961a23a;p=hopm.git - scan.c: removed junk in scan_negotiation_failed() and scan_timeout(); constification git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6285 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/scan.c b/src/scan.c index 96d5c1c..4553c76 100644 --- a/src/scan.c +++ b/src/scan.c @@ -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