This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".

The branch, u2_10_12_branch has been updated
       via  2dcf47b3efe4ff28f5d06ba9346addad696f7a98 (commit)
       via  060826b3cbf942eaf68dfbefd4004601d424a51b (commit)
       via  c38a37e36a6cf1672b3de42e4d5a3f1d90ee5e6c (commit)
      from  d49c8287d3e4b067d1bd22c13572e90cdfee6709 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2dcf47b3efe4ff28f5d06ba9346addad696f7a98
Author: Michael Poole <[email protected]>
Date:   Mon Sep 18 21:47:54 2023 -0400

    do_trace: Remove unused local variable

diff --git a/ircd/m_trace.c b/ircd/m_trace.c
index 7478b204..0915f517 100644
--- a/ircd/m_trace.c
+++ b/ircd/m_trace.c
@@ -112,7 +112,6 @@ void do_trace(struct Client *cptr, struct Client *sptr, int 
parc, char *parv[])
   int doall;
   int link_s[MAXCONNECTIONS];
   int link_u[MAXCONNECTIONS];
-  int cnt = 0;
   int wilds;
   int dow;
 
@@ -209,25 +208,21 @@ void do_trace(struct Client *cptr, struct Client *sptr, 
int parc, char *parv[])
 
     switch (cli_status(acptr)) {
       case STAT_CONNECTING:
-       send_reply(sptr, RPL_TRACECONNECTING, conClass, cli_name(acptr));
-        cnt++;
+        send_reply(sptr, RPL_TRACECONNECTING, conClass, cli_name(acptr));
         break;
       case STAT_HANDSHAKE:
-       send_reply(sptr, RPL_TRACEHANDSHAKE, conClass, cli_name(acptr));
-        cnt++;
+        send_reply(sptr, RPL_TRACEHANDSHAKE, conClass, cli_name(acptr));
         break;
       case STAT_ME:
         break;
       case STAT_UNKNOWN:
       case STAT_UNKNOWN_USER:
       case STAT_WEBIRC:
-       send_reply(sptr, RPL_TRACEUNKNOWN, conClass,
-                  get_client_name(acptr, HIDE_IP));
-        cnt++;
+        send_reply(sptr, RPL_TRACEUNKNOWN, conClass,
+                   get_client_name(acptr, HIDE_IP));
         break;
       case STAT_UNKNOWN_SERVER:
-       send_reply(sptr, RPL_TRACEUNKNOWN, conClass, "Unknown Server");
-        cnt++;
+        send_reply(sptr, RPL_TRACEUNKNOWN, conClass, "Unknown Server");
         break;
       case STAT_USER:
         /* Only opers see users if there is a wildcard
@@ -235,14 +230,13 @@ void do_trace(struct Client *cptr, struct Client *sptr, 
int parc, char *parv[])
         if ((IsAnOper(sptr) && (MyUser(sptr) ||
             !(dow && IsInvisible(acptr)))) || !dow || IsAnOper(acptr)) {
           if (IsAnOper(acptr))
-           send_reply(sptr, RPL_TRACEOPERATOR, conClass,
-                      get_client_name(acptr, SHOW_IP),
-                      CurrentTime - cli_lasttime(acptr));
+            send_reply(sptr, RPL_TRACEOPERATOR, conClass,
+                       get_client_name(acptr, SHOW_IP),
+                       CurrentTime - cli_lasttime(acptr));
           else
-           send_reply(sptr, RPL_TRACEUSER, conClass,
-                      get_client_name(acptr, SHOW_IP),
-                      CurrentTime - cli_lasttime(acptr));
-          cnt++;
+            send_reply(sptr, RPL_TRACEUSER, conClass,
+                       get_client_name(acptr, SHOW_IP),
+                       CurrentTime - cli_lasttime(acptr));
         }
         break;
         /*
@@ -267,7 +261,7 @@ void do_trace(struct Client *cptr, struct Client *sptr, int 
parc, char *parv[])
               || !(acptr2 = findNUser(cli_serv(acptr)->by))
               || (cli_user(acptr2) != cli_serv(acptr)->user))
             acptr2 = NULL;
-         send_reply(sptr, RPL_TRACESERVER, conClass, link_s[i],
+          send_reply(sptr, RPL_TRACESERVER, conClass, link_s[i],
                      link_u[i], cli_name(acptr),
                      acptr2 ? cli_name(acptr2) : "*",
                      cli_serv(acptr)->user->username,
@@ -275,16 +269,15 @@ void do_trace(struct Client *cptr, struct Client *sptr, 
int parc, char *parv[])
                      CurrentTime - cli_lasttime(acptr),
                      CurrentTime - cli_serv(acptr)->timestamp);
         } else
-         send_reply(sptr, RPL_TRACESERVER, conClass, link_s[i],
+          send_reply(sptr, RPL_TRACESERVER, conClass, link_s[i],
                      link_u[i], cli_name(acptr),
-                     (*(cli_serv(acptr))->by) ?  cli_serv(acptr)->by : "*", 
"*",
+                     (*(cli_serv(acptr))->by) ? cli_serv(acptr)->by : "*", "*",
                      cli_name(&me), CurrentTime - cli_lasttime(acptr),
-                    CurrentTime - cli_serv(acptr)->timestamp);
-        cnt++;
+                     CurrentTime - cli_serv(acptr)->timestamp);
+
         break;
       default:                  /* We actually shouldn't come here, -msa */
-       send_reply(sptr, RPL_TRACENEWTYPE, get_client_name(acptr, HIDE_IP));
-        cnt++;
+        send_reply(sptr, RPL_TRACENEWTYPE, get_client_name(acptr, HIDE_IP));
         break;
     }
   }
commit 060826b3cbf942eaf68dfbefd4004601d424a51b
Author: Michael Poole <[email protected]>
Date:   Mon Sep 18 21:47:43 2023 -0400

    bmatch: Remove unused local variable.

diff --git a/ircd/channel.c b/ircd/channel.c
index a49caea8..cf11b53c 100644
--- a/ircd/channel.c
+++ b/ircd/channel.c
@@ -2767,7 +2767,6 @@ bmatch(struct Ban *old_ban, struct Ban *new_ban)
 int apply_ban(struct Ban **banlist, struct Ban *newban, int do_free)
 {
   struct Ban *ban;
-  size_t count = 0;
 
   assert(newban->flags & (BAN_ADD|BAN_DEL));
   if (newban->flags & BAN_ADD) {
@@ -2778,9 +2777,6 @@ int apply_ban(struct Ban **banlist, struct Ban *newban, 
int do_free)
           free_ban(newban);
         return 1;
       }
-      if (!(ban->flags & (BAN_OVERLAPPED|BAN_DEL))) {
-        count++;
-      }
     }
     /* Mark more specific entries and add this one to the end of the list. */
     while ((ban = *banlist) != NULL) {
commit c38a37e36a6cf1672b3de42e4d5a3f1d90ee5e6c
Author: Michael Poole <[email protected]>
Date:   Mon Sep 18 21:47:24 2023 -0400

    Declare yyparse(void) because we do not use YYPARSE_PARAM

diff --git a/include/ircd_lexer.h b/include/ircd_lexer.h
index 8b054474..5246b6e4 100644
--- a/include/ircd_lexer.h
+++ b/include/ircd_lexer.h
@@ -28,6 +28,6 @@ extern const char *lexer_position(int *lineno);
 extern int lexer_allowed(unsigned int bitnum);
 extern void deinit_lexer(void);
 
-extern int yyparse();
+extern int yyparse(void);
 
 #endif /* INCLUDED_ircd_lexer_h */
-----------------------------------------------------------------------

Summary of changes:
 include/ircd_lexer.h |  2 +-
 ircd/channel.c       |  4 ----
 ircd/m_trace.c       | 41 +++++++++++++++++------------------------
 3 files changed, 18 insertions(+), 29 deletions(-)


hooks/post-receive
-- 
Undernet IRC Server Source Code.

-- 
You received this message because you are subscribed to the Google Groups 
"Undernet Mailing List - [email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].

Reply via email to