Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-08-14 03:04:16 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/s_user.c ChangeLog

Log message:

Quash an initializer warning in the initial user-mode array.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.199 ircu2.10/ChangeLog:1.710.2.200
--- ircu2.10/ChangeLog:1.710.2.199      Mon Aug 13 20:02:24 2007
+++ ircu2.10/ChangeLog  Mon Aug 13 20:04:05 2007
@@ -1,5 +1,10 @@
 2007-08-13  Michael Poole <[EMAIL PROTECTED]>
 
+       * ircd/s_user.c (register_user): Initialize umodev[] in a
+       C89-compatible way.  (gcc 4.1.2 warned about it.)
+
+2007-08-13  Michael Poole <[EMAIL PROTECTED]>
+
        * ircd/m_names.c (do_names): Add NAMES_DEL to comment.  Avoid use
        of strcat().  Get rid of ms_names(), which was basically a copy of
        m_names(), and merge the "showingdelayed" changes into m_names().
Index: ircu2.10/ircd/s_user.c
diff -u ircu2.10/ircd/s_user.c:1.99.2.8 ircu2.10/ircd/s_user.c:1.99.2.9
--- ircu2.10/ircd/s_user.c:1.99.2.8     Fri Jul 20 21:52:03 2007
+++ ircu2.10/ircd/s_user.c      Mon Aug 13 20:04:05 2007
@@ -22,7 +22,7 @@
  */
 /** @file
  * @brief Miscellaneous user-related helper functions.
- * @version $Id: s_user.c,v 1.99.2.8 2007/07/21 04:52:03 isomer Exp $
+ * @version $Id: s_user.c,v 1.99.2.9 2007/08/14 03:04:05 entrope Exp $
  */
 #include "config.h"
 
@@ -390,7 +390,8 @@
      */
     tmpstr = (char*)client_get_default_umode(sptr);
     if (tmpstr) {
-      char *umodev[] = { NULL, NULL, tmpstr, NULL };
+      char *umodev[] = { NULL, NULL, NULL, NULL };
+      umodev[2] = tmpstr;
       set_user_mode(cptr, sptr, 1, umodev, ALLOWMODES_ANY);
     }
 
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to