[cvslog] (2008-07-11 23:29:39 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Fri Jul 11 17:29:39 CST 2008


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2008-07-11 23:29:39 UTC
Commited by: Tothwolf <tothwolf at techmonkeys.org>

Modified files:
     doc/Changes1.6 src/mod/irc.mod/tclirc.c

Log message:

Moved the variable declaration for tcl_maskhost() to the top of the function where it should be. FireEgl's tcl_maskhost patch prevented tcl_maskhost() from compiling with many non-GCC and older GCC compilers.
Found by: simple / Patch by: Tothwolf

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/Changes1.6
diff -u eggdrop1.6/doc/Changes1.6:1.5 eggdrop1.6/doc/Changes1.6:1.6
--- eggdrop1.6/doc/Changes1.6:1.5	Thu Jul 10 05:56:23 2008
+++ eggdrop1.6/doc/Changes1.6	Fri Jul 11 18:29:28 2008
@@ -1,4 +1,4 @@
-$Id: Changes1.6,v 1.5 2008-07-10 10:56:23 tothwolf Exp $
+$Id: Changes1.6,v 1.6 2008-07-11 23:29:28 tothwolf Exp $
 
 Eggdrop Changes (since version 1.6.0)
 
@@ -6,6 +6,11 @@
 
 1.6.20 (CVS):
 
+  - Moved the variable declaration for tcl_maskhost() to the top of the
+    function where it should be. FireEgl's tcl_maskhost patch prevented
+    tcl_maskhost() from compiling with many non-GCC and older GCC compilers.
+    Found by: simple / Patch by: Tothwolf
+
   - Removed Solaris RANDMAX autoconf hack.
   - Added proper preprocessor checks for RANDOM_MAX and RAND_MAX.
   - Added autoconf tests and preprocessor checks for rand() and lrand48().
Index: eggdrop1.6/src/mod/irc.mod/tclirc.c
diff -u eggdrop1.6/src/mod/irc.mod/tclirc.c:1.52 eggdrop1.6/src/mod/irc.mod/tclirc.c:1.53
--- eggdrop1.6/src/mod/irc.mod/tclirc.c:1.52	Tue Apr 29 12:29:45 2008
+++ eggdrop1.6/src/mod/irc.mod/tclirc.c	Fri Jul 11 18:29:28 2008
@@ -1,7 +1,7 @@
 /*
  * tclirc.c -- part of irc.mod
  *
- * $Id: tclirc.c,v 1.52 2008-04-29 17:29:45 guppy Exp $
+ * $Id: tclirc.c,v 1.53 2008-07-11 23:29:28 tothwolf Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -495,8 +495,12 @@
 
 static int tcl_maskhost STDVAR
 {
+  char *new;
+  
   BADARGS(2, 2, " nick!user at host");
-  char *new = nmalloc(strlen(argv[1]) + 5);
+
+  new = nmalloc(strlen(argv[1]) + 5);
+
   maskban(argv[1], new);
   Tcl_AppendResult(irp, new, NULL);
   nfree(new);
----------------------- End of diff -----------------------



More information about the Changes mailing list