[cvslog] [CVS] Module eggdrop1.6: Change committed

cvs at eggheads.org cvs at eggheads.org
Thu Feb 18 07:03:14 CST 2010


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2010-02-18 13:03:14 UTC
Committer  : Rumen Stoyanov <pseudo at egg6.net>

Modified files:
     doc/Changes1.6 src/chanprog.c src/cmds.c src/patch.h
     src/mod/channels.mod/cmdschan.c

Log message:

Got rid of some compile warnings related to passing possibly signed chars to tolower().

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/Changes1.6
diff -u eggdrop1.6/doc/Changes1.6:1.65 eggdrop1.6/doc/Changes1.6:1.66
--- eggdrop1.6/doc/Changes1.6:1.65	Thu Feb 18 03:52:29 2010
+++ eggdrop1.6/doc/Changes1.6	Thu Feb 18 07:03:04 2010
@@ -1,4 +1,4 @@
-$Id: Changes1.6,v 1.65 2010/02/18 09:52:29 pseudo Exp $
+$Id: Changes1.6,v 1.66 2010/02/18 13:03:04 pseudo Exp $
 
 Eggdrop Changes (since version 1.6.0)
 
@@ -6,6 +6,10 @@
 
 1.6.20 (CVS):
 
+  - Got rid of some compile warnings related to passing possibly signed chars
+    to tolower().
+    Patch by: pseudo
+
   - Changed the definition of the 'Function' type to avoid data loss with
     functions returning 64-bit types. 64-bit builds will no longer crash due
     to pointers being truncated to 32 bits. Created new function pointer type
Index: eggdrop1.6/src/chanprog.c
diff -u eggdrop1.6/src/chanprog.c:1.65 eggdrop1.6/src/chanprog.c:1.66
--- eggdrop1.6/src/chanprog.c:1.65	Mon Jan 25 21:12:15 2010
+++ eggdrop1.6/src/chanprog.c	Thu Feb 18 07:03:04 2010
@@ -7,7 +7,7 @@
  *   telling the current programmed settings
  *   initializing a lot of stuff and loading the tcl scripts
  *
- * $Id: chanprog.c,v 1.65 2010/01/26 03:12:15 tothwolf Exp $
+ * $Id: chanprog.c,v 1.66 2010/02/18 13:03:04 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -677,7 +677,8 @@
       if (!s)
         s = ptr;
     } else if (s) {
-      for (n = name; *n && *s && s < ptr && tolower(*n) == tolower(*s); n++, s++);
+      for (n = name; *n && *s && s < ptr &&
+           tolower((unsigned) *n) == tolower((unsigned) *s); n++, s++);
 
       if (s == ptr && !*n)
         return 1;
Index: eggdrop1.6/src/cmds.c
diff -u eggdrop1.6/src/cmds.c:1.125 eggdrop1.6/src/cmds.c:1.126
--- eggdrop1.6/src/cmds.c:1.125	Thu Feb 18 03:52:29 2010
+++ eggdrop1.6/src/cmds.c	Thu Feb 18 07:03:04 2010
@@ -3,7 +3,7 @@
  *   commands from a user via dcc
  *   (split in 2, this portion contains no-irc commands)
  *
- * $Id: cmds.c,v 1.125 2010/02/18 09:52:29 pseudo Exp $
+ * $Id: cmds.c,v 1.126 2010/02/18 13:03:04 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1892,7 +1892,7 @@
   int res = 0;
 
   for (; *s; s++)
-    switch (tolower(*s)) {
+    switch (tolower((unsigned) *s)) {
     case 'b':
       res |= STRIP_BOLD;
       break;
@@ -2325,7 +2325,7 @@
     p = newsplit(&par);
     p_expire = p + 1;
     while (*(++p) != 0) {
-      switch (tolower(*p)) {
+      switch (tolower((unsigned) *p)) {
       case 'd':
         *p = 0;
         expire_foo = strtol(p_expire, NULL, 10);
Index: eggdrop1.6/src/mod/channels.mod/cmdschan.c
diff -u eggdrop1.6/src/mod/channels.mod/cmdschan.c:1.80 eggdrop1.6/src/mod/channels.mod/cmdschan.c:1.81
--- eggdrop1.6/src/mod/channels.mod/cmdschan.c:1.80	Thu Feb 18 03:52:29 2010
+++ eggdrop1.6/src/mod/channels.mod/cmdschan.c	Thu Feb 18 07:03:04 2010
@@ -2,7 +2,7 @@
  * cmdschan.c -- part of channels.mod
  *   commands from a user via dcc that cause server interaction
  *
- * $Id: cmdschan.c,v 1.80 2010/02/18 09:52:29 pseudo Exp $
+ * $Id: cmdschan.c,v 1.81 2010/02/18 13:03:04 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -66,7 +66,7 @@
       p = newsplit(&par);
       p_expire = p + 1;
       while (*(++p) != 0) {
-        switch (tolower(*p)) {
+        switch (tolower((unsigned) *p)) {
         case 'd':
           *p = 0;
           expire_foo = strtol(p_expire, NULL, 10);
@@ -204,7 +204,7 @@
       p = newsplit(&par);
       p_expire = p + 1;
       while (*(++p) != 0) {
-        switch (tolower(*p)) {
+        switch (tolower((unsigned) *p)) {
         case 'd':
           *p = 0;
           expire_foo = strtol(p_expire, NULL, 10);
@@ -332,7 +332,7 @@
       p = newsplit(&par);
       p_expire = p + 1;
       while (*(++p) != 0) {
-        switch (tolower(*p)) {
+        switch (tolower((unsigned) *p)) {
         case 'd':
           *p = 0;
           expire_foo = strtol(p_expire, NULL, 10);
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.1235 eggdrop1.6/src/patch.h:1.1236
--- eggdrop1.6/src/patch.h:1.1235	Thu Feb 18 03:52:29 2010
+++ eggdrop1.6/src/patch.h	Thu Feb 18 07:03:04 2010
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.1235 2010/02/18 09:52:29 pseudo Exp $
+ * $Id: patch.h,v 1.1236 2010/02/18 13:03:04 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1266486110");            /* current unixtime */
+patch("1266487660");            /* current unixtime */
 /*
  *
  *
  */
-patch("64bitfix");
+patch("unsigned-tolower");
 /*
  *
  *
----------------------- End of diff -----------------------


More information about the Changes mailing list