Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2006-07-24 00:29:27 UTC

Modified files:
     ircd/uping.c ircd/s_user.c ircd/match.c ircd/m_motd.c
     ircd/ircd_reslib.c ircd/ircd_parser.y ircd/engine_select.c
     include/s_user.h ChangeLog

Log message:

Fix a grab-bag of compiler warnings.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.805 ircu2.10/ChangeLog:1.806
--- ircu2.10/ChangeLog:1.805    Sun Jul 23 11:17:50 2006
+++ ircu2.10/ChangeLog  Sun Jul 23 17:29:17 2006
@@ -1,5 +1,29 @@
 2006-07-23  Michael Poole <[EMAIL PROTECTED]>
 
+       * include/s_user.h (del_isupport): Declare.
+
+       * ircd/engine_select.c (engine_loop): Fix type of codesize
+       variable.
+
+       * ircd/ircd_parser.y (lexer_include): Declare.
+       (sconf): Delete.
+       (yylineno): Undeclare.
+
+       * ircd/ircd_reslib.c (irc_ns_get32): Delete.
+       (irc_ns_put16): Delete.
+       (irc_ns_put32): Delete.
+
+       * ircd/m_motd.c (ms_motd): Export symbol.
+
+       * ircd/match.c (matchdecomp): Disable via #if.
+       (mmexec): Likewise.
+
+       * ircd/s_user.c (del_isupport): Export symbol.
+
+       * ircd/uping.c (uping_begin): Delete.
+
+2006-07-23  Michael Poole <[EMAIL PROTECTED]>
+
        * doc/example.conf (Features): Show NOIDENT example.
 
        * doc/readme.features (NOIDENT): Document new feature setting.
Index: ircu2.10/include/s_user.h
diff -u ircu2.10/include/s_user.h:1.23 ircu2.10/include/s_user.h:1.24
--- ircu2.10/include/s_user.h:1.23      Thu Apr  6 20:27:51 2006
+++ ircu2.10/include/s_user.h   Sun Jul 23 17:29:17 2006
@@ -1,6 +1,6 @@
 /** @file s_user.h
  * @brief Miscellaneous user-related helper functions.
- * @version $Id: s_user.h,v 1.23 2006/04/07 03:27:51 entrope Exp $
+ * @version $Id: s_user.h,v 1.24 2006/07/24 00:29:17 entrope Exp $
  */
 #ifndef INCLUDED_s_user_h
 #define INCLUDED_s_user_h
@@ -97,6 +97,7 @@
 extern void init_isupport(void);
 extern void add_isupport_i(const char *name, int value);
 extern void add_isupport_s(const char *name, const char *value);
+extern void del_isupport(const char *name);
 extern int send_supported(struct Client *cptr);
 
 #define NAMES_ALL 1 /**< List all users in channel */
Index: ircu2.10/ircd/engine_select.c
diff -u ircu2.10/ircd/engine_select.c:1.8 ircu2.10/ircd/engine_select.c:1.9
--- ircu2.10/ircd/engine_select.c:1.8   Mon Jul 11 20:10:59 2005
+++ ircu2.10/ircd/engine_select.c       Sun Jul 23 17:29:17 2006
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief BSD sockets select() event engine.
- * @version $Id: engine_select.c,v 1.8 2005/07/12 03:10:59 entrope Exp $
+ * @version $Id: engine_select.c,v 1.9 2006/07/24 00:29:17 entrope Exp $
  */
 #include "config.h"
 
@@ -265,7 +265,7 @@
   int nfds;
   int i;
   int errcode;
-  size_t codesize;
+  socklen_t codesize;
   struct Socket *sock;
 
   while (running) {
Index: ircu2.10/ircd/ircd_parser.y
diff -u ircu2.10/ircd/ircd_parser.y:1.66 ircu2.10/ircd/ircd_parser.y:1.67
--- ircu2.10/ircd/ircd_parser.y:1.66    Fri Jun 30 16:45:59 2006
+++ ircu2.10/ircd/ircd_parser.y Sun Jul 23 17:29:17 2006
@@ -17,7 +17,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  *  USA.
- * $Id: ircd_parser.y,v 1.66 2006/06/30 23:45:59 entrope Exp $
+ * $Id: ircd_parser.y,v 1.67 2006/07/24 00:29:17 entrope Exp $
  */
 %{
 
@@ -66,13 +66,14 @@
   extern struct qline*      GlobalQuarantineList;
 
   int yylex(void);
+  void lexer_include(const char *filename);
+
   /* Now all the globals we need :/... */
   static int tping, tconn, maxlinks, sendq, port, invert, stringno, flags;
   static char *name, *pass, *host, *ip, *username, *origin, *hub_limit;
   static char *stringlist[MAX_STRINGS];
   static struct ConnectionClass *c_class;
   static struct DenyConf *dconf;
-  static struct ServerConf *sconf;
   static struct s_map *smap;
   static struct Privs privs;
   static struct Privs privs_dirty;
@@ -113,7 +114,6 @@
 static int
 permitted(enum ConfigBlock type, int warn)
 {
-  extern int yylineno;
   static const char *block_names[BLOCK_LAST_BLOCK] = {
     "Admin", "Class", "Client", "Connect", "CRule", "Features",
     "General", "IAuth", "Include", "Jupe", "Kill", "Motd", "Oper",
Index: ircu2.10/ircd/ircd_reslib.c
diff -u ircu2.10/ircd/ircd_reslib.c:1.6 ircu2.10/ircd/ircd_reslib.c:1.7
--- ircu2.10/ircd/ircd_reslib.c:1.6     Fri Jan  6 03:22:31 2006
+++ ircu2.10/ircd/ircd_reslib.c Sun Jul 23 17:29:17 2006
@@ -99,7 +99,7 @@
 
 /** @file
  * @brief DNS resolver library functions.
- * @version $Id: ircd_reslib.c,v 1.6 2006/01/06 11:22:31 isomer Exp $
+ * @version $Id: ircd_reslib.c,v 1.7 2006/07/24 00:29:17 entrope Exp $
  */
 
 /** Array of nameserver addresses. */
@@ -565,39 +565,6 @@
   return(dst);
 }
 
-/** Read a 32-bit network-endian value from \a src.
- * @param[in] src Input data buffer.
- * @return Value retrieved from buffer.
- */
-static unsigned long
-irc_ns_get32(const unsigned char *src)
-{
-  unsigned long dst;
-
-  IRC_NS_GET32(dst, src);
-  return(dst);
-}
-
-/** Write a 16-bit network-endian value to \a dst.
- * @param[in] src Value to write.
- * @param[out] dst Output buffer.
- */
-static void
-irc_ns_put16(unsigned int src, unsigned char *dst)
-{
-  IRC_NS_PUT16(src, dst);
-}
-
-/** Write a 32-bit network-endian value to \a dst.
- * @param[in] src Value to write.
- * @param[out] dst Output buffer.
- */
-static void
-irc_ns_put32(unsigned long src, unsigned char *dst)
-{
-  IRC_NS_PUT32(src, dst);
-}
-
 /* From ns_name.c */
 
 /** Indicate whether a character needs quoting.
Index: ircu2.10/ircd/m_motd.c
diff -u ircu2.10/ircd/m_motd.c:1.16 ircu2.10/ircd/m_motd.c:1.17
--- ircu2.10/ircd/m_motd.c:1.16 Fri Jul 14 17:09:10 2006
+++ ircu2.10/ircd/m_motd.c      Sun Jul 23 17:29:17 2006
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_motd.c,v 1.16 2006/07/15 00:09:10 entrope Exp $
+ * $Id: m_motd.c,v 1.17 2006/07/24 00:29:17 entrope Exp $
  */
 
 #include "config.h"
@@ -91,7 +91,6 @@
  * @param[in] parc Number of arguments.
  * @param[in] parv Argument vector.
  */
-static
 int ms_motd(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
   if (hunt_server_cmd(sptr, CMD_MOTD, cptr, 0, "%C", 1, parc, parv) !=
Index: ircu2.10/ircd/match.c
diff -u ircu2.10/ircd/match.c:1.22 ircu2.10/ircd/match.c:1.23
--- ircu2.10/ircd/match.c:1.22  Thu Apr  6 20:27:50 2006
+++ ircu2.10/ircd/match.c       Sun Jul 23 17:29:17 2006
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Functions to match strings against IRC mask strings.
- * @version $Id: match.c,v 1.22 2006/04/07 03:27:50 entrope Exp $
+ * @version $Id: match.c,v 1.23 2006/07/24 00:29:17 entrope Exp $
  */
 #include "config.h"
 
@@ -549,6 +549,8 @@
   return 0;
 }
 
+#if 0
+
 /*
  * matchdecomp()
  * Prints the human readable version of *cmask into *mask, (decompiles
@@ -841,6 +843,8 @@
   return 1;                     /* Auch... something left out ? Fail */
 }
 
+#endif
+
 /** Test whether an address matches the most significant bits of a mask.
  * @param[in] addr Address to test.
  * @param[in] mask Address to test against.
Index: ircu2.10/ircd/s_user.c
diff -u ircu2.10/ircd/s_user.c:1.106 ircu2.10/ircd/s_user.c:1.107
--- ircu2.10/ircd/s_user.c:1.106        Sun Jul 23 11:04:22 2006
+++ ircu2.10/ircd/s_user.c      Sun Jul 23 17:29:17 2006
@@ -22,7 +22,7 @@
  */
 /** @file
  * @brief Miscellaneous user-related helper functions.
- * @version $Id: s_user.c,v 1.106 2006/07/23 18:04:22 entrope Exp $
+ * @version $Id: s_user.c,v 1.107 2006/07/24 00:29:17 entrope Exp $
  */
 #include "config.h"
 
@@ -1607,7 +1607,6 @@
 /** Stop announcing support for a feature.
  * @param[in] name Name of ISUPPORT feature to revoke.
  */
-static
 void del_isupport(const char *name)
 {
   struct ISupport *isv, *prev;
Index: ircu2.10/ircd/uping.c
diff -u ircu2.10/ircd/uping.c:1.27 ircu2.10/ircd/uping.c:1.28
--- ircu2.10/ircd/uping.c:1.27  Thu Apr  6 20:27:50 2006
+++ ircu2.10/ircd/uping.c       Sun Jul 23 17:29:17 2006
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief UDP ping implementation.
- * @version $Id: uping.c,v 1.27 2006/04/07 03:27:50 entrope Exp $
+ * @version $Id: uping.c,v 1.28 2006/07/24 00:29:17 entrope Exp $
  */
 #include "config.h"
 
@@ -60,14 +60,6 @@
 static void uping_read(struct UPing* pptr);
 static void uping_end(struct UPing* pptr);
 
-/** Start iteration of uping list.
- * @return Start of uping list.
- */
-static struct UPing* uping_begin(void)
-{
-  return pingList;
-}
-
 /** Removes \a p from uping list.
  * @param[in,out] p UPing to remove from list.
  */
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to