Avoid a warning about signedness mismatch in umkpasswd.
authorMichael Poole <mdpoole@troilus.org>
Sat, 17 Nov 2007 13:48:15 +0000 (13:48 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 17 Nov 2007 13:48:15 +0000 (13:48 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1842 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/umkpasswd.c

index fe5b3cba50626b2712618c759089675d10d7ec34..9e01df971686bbbac7d138261f5f16e522f1eea0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-04  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/umkpasswd.c (sum): Typecast buffer to avoid a warning about
+       the parameter type being passed to strlen().
+       
 2007-11-04  Michael Poole <mdpoole@troilus.org>
 
        * doc/example.conf: Document /LIST M as controlled by list_chan.
index 29014a16c28d8418724b96016831ced335d5a98c..30d4130af6e09f878a3ca164a5570144683820e9 100644 (file)
@@ -201,7 +201,7 @@ vstr[0] = '\0';
  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)
   {