Author: bh
Date: 2007-07-02 22:03:21 +0200 (Mon, 02 Jul 2007)
New Revision: 249

Modified:
   trunk/openvas-server/ChangeLog
   trunk/openvas-server/openvasd/plugs_hash.c
Log:
* openvasd/plugs_hash.c (file_hash, plugins_hash): Use unsigned
char (pointer/array) to hold the digest to avoid warnings about
type mismatch.


Modified: trunk/openvas-server/ChangeLog
===================================================================
--- trunk/openvas-server/ChangeLog      2007-07-02 20:00:27 UTC (rev 248)
+++ trunk/openvas-server/ChangeLog      2007-07-02 20:03:21 UTC (rev 249)
@@ -1,5 +1,11 @@
 2007-07-02  Bernhard Herzog  <[EMAIL PROTECTED]>
 
+       * openvasd/plugs_hash.c (file_hash, plugins_hash): Use unsigned
+       char (pointer/array) to hold the digest to avoid warnings about
+       type mismatch.
+
+2007-07-02  Bernhard Herzog  <[EMAIL PROTECTED]>
+
        * openvasd/md5.c, openvasd/md5.c: removed. no longer needed.
 
        * openvasd/Makefile: md5.c has been removed.

Modified: trunk/openvas-server/openvasd/plugs_hash.c
===================================================================
--- trunk/openvas-server/openvasd/plugs_hash.c  2007-07-02 20:00:27 UTC (rev 
248)
+++ trunk/openvas-server/openvasd/plugs_hash.c  2007-07-02 20:03:21 UTC (rev 
249)
@@ -70,7 +70,7 @@
  if(content &&
     (content != MAP_FAILED))
    {
-     char digest[16];
+     unsigned char digest[16];
      gcry_md_hash_buffer(GCRY_MD_MD5, digest, content, len);
      char * ret = md5sum_hex(digest);
      munmap(content, len);
@@ -144,7 +144,7 @@
  char *dir  = arg_get_value(preferences, "plugins_folder");
  char *uhome;
  gcry_md_hd_t ctx;
- char * digest;
+ unsigned char * digest;
  char * ret;
  
  gcry_md_open(&ctx, GCRY_MD_MD5, 0);

_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits

Reply via email to