Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-11-17 13:48:25 UTC
Modified files:
Tag: u2_10_12_branch
ircd/umkpasswd.c ChangeLog
Log message:
Avoid a warning about signedness mismatch in umkpasswd.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.212 ircu2.10/ChangeLog:1.710.2.213
--- ircu2.10/ChangeLog:1.710.2.212 Sun Nov 4 19:01:34 2007
+++ ircu2.10/ChangeLog Sat Nov 17 05:48:15 2007
@@ -1,5 +1,10 @@
2007-11-04 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/umkpasswd.c (sum): Typecast buffer to avoid a warning about
+ the parameter type being passed to strlen().
+
+2007-11-04 Michael Poole <[EMAIL PROTECTED]>
+
* doc/example.conf: Document /LIST M as controlled by list_chan.
* include/channel.h (LISTARG_SHOWMODES): Define.
Index: ircu2.10/ircd/umkpasswd.c
diff -u ircu2.10/ircd/umkpasswd.c:1.8.2.2 ircu2.10/ircd/umkpasswd.c:1.8.2.3
--- ircu2.10/ircd/umkpasswd.c:1.8.2.2 Tue Aug 14 18:15:53 2007
+++ ircu2.10/ircd/umkpasswd.c Sat Nov 17 05:48:15 2007
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: umkpasswd.c,v 1.8.2.2 2007/08/15 01:15:53 entrope Exp $
+ * $Id: umkpasswd.c,v 1.8.2.3 2007/11/17 13:48:15 entrope Exp $
*/
#include "config.h"
#include <unistd.h>
@@ -201,7 +201,7 @@
MD5Init(&context);
while ((fgets((char*)buffer, sizeof(buffer), file)) != NULL)
{
- MD5Update(&context, buffer, strlen(buffer));
+ MD5Update(&context, buffer, strlen((char*)buffer));
str = strstr((char*)buffer, "$Id: ");
if (str != NULL)
{
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches