[eggheads-patches] PATCH1.5: ambiguous_braces_1.5.patch

Fabian Knittel fknittel at gmx.de
Mon Oct 23 16:32:08 CST 2000


[ ambiguous_braces_1.5.patch ]

This patch removes a tiny little compile warning on some weird
compilers about an ambiguous if/else statement. Oh well. :)

Fabian

--
Fabian Knittel <fknittel at gmx.de> -- http://www.esc-web.de/fabian/
Signed or encrypted mail preferred.    PGP DSA key ID: 0x838B4D20
-------------- next part --------------
diff -urN --exclude-from=/home/fabian/.diffex eggdrop1.5~/doc/UPDATES1.5 eggdrop1.5/doc/UPDATES1.5
--- eggdrop1.5~/doc/UPDATES1.5	Thu Oct 19 19:25:38 2000
+++ eggdrop1.5/doc/UPDATES1.5	Fri Oct 20 15:14:16 2000
@@ -4,6 +4,7 @@
 
 1.5.5
 Found by  Fixed by  What...
+NigtHuntr Fabian    Removed small compile warning about ambigious if/else.
           Looser^   Fixed typo in irc.mod/irc.h me_op export macro.
           Eule      Made the bot recognise modes during CHAN_PEND. Allows us to
                     properly recognise bans/other masks and call mode binds.
diff -urN --exclude-from=/home/fabian/.diffex eggdrop1.5~/src/misc.c eggdrop1.5/src/misc.c
--- eggdrop1.5~/src/misc.c	Thu Oct 19 19:25:38 2000
+++ eggdrop1.5/src/misc.c	Fri Oct 20 15:13:39 2000
@@ -295,12 +295,12 @@
     } else
       i = 0;
     while (*p != '@') {
-      if (!fl && strchr("~+-^=", *p))
+      if (!fl && strchr("~+-^=", *p)) {
         if (strict_host)
 	  nw[i] = '?';
 	else
 	  i--; 
-      else
+      } else
 	nw[i] = *p;
       fl++;
       p++;




More information about the Patches mailing list