[Openvas-commits] r8210 - in trunk/openvas-libraries: . hg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 28 09:56:10 CEST 2010


Author: mwiegand
Date: 2010-06-28 09:56:03 +0200 (Mon, 28 Jun 2010)
New Revision: 8210

Modified:
   trunk/openvas-libraries/ChangeLog
   trunk/openvas-libraries/hg/hg_dns_axfr.c
Log:
* hg/hg_dns_axfr.c (hg_dns_axfr_decode): Cast union parameter for
  hg_dns_axfr_add_host to the expected type, thereby resolving a
  compiler warning.


Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog	2010-06-28 07:51:13 UTC (rev 8209)
+++ trunk/openvas-libraries/ChangeLog	2010-06-28 07:56:03 UTC (rev 8210)
@@ -1,5 +1,11 @@
 2010-06-28  Michael Wiegand <michael.wiegand at greenbone.net>
 
+	* hg/hg_dns_axfr.c (hg_dns_axfr_decode): Cast union parameter for
+	hg_dns_axfr_add_host to the expected type, thereby resolving a
+	compiler warning.
+
+2010-06-28  Michael Wiegand <michael.wiegand at greenbone.net>
+
 	* misc/resource_request.c (resource_request_resource): Use
 	g_ascii_strcasecmp instead of strcasecmp, thereby removing the need
 	for including strings.h and resolving a compiler warning.

Modified: trunk/openvas-libraries/hg/hg_dns_axfr.c
===================================================================
--- trunk/openvas-libraries/hg/hg_dns_axfr.c	2010-06-28 07:51:13 UTC (rev 8209)
+++ trunk/openvas-libraries/hg/hg_dns_axfr.c	2010-06-28 07:56:03 UTC (rev 8210)
@@ -267,7 +267,7 @@
   cp = (u_char *) answer + HFIXEDSZ;
   while (qdcount--)
     cp += dn_skipname (cp, limit) + QFIXEDSZ;
-  hg_dns_axfr_add_host (globals, cp, answer);
+  hg_dns_axfr_add_host (globals, cp, (u_char *) answer);
 
   return (0);
 }



More information about the Openvas-commits mailing list