[Openvas-commits] r9428 - in trunk/openvas-libraries: . misc
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 17 14:04:36 CET 2010
Author: spreeti
Date: 2010-11-17 14:04:36 +0100 (Wed, 17 Nov 2010)
New Revision: 9428
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/misc/ids_send.c
Log:
compiler warnings
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2010-11-17 12:06:02 UTC (rev 9427)
+++ trunk/openvas-libraries/ChangeLog 2010-11-17 13:04:36 UTC (rev 9428)
@@ -1,3 +1,8 @@
+2010-11-17 Preeti Subramanian <spreeti at secpod.com>
+
+ * misc/ids_send.c (open_sock_tcp): Addressed compiler warnings.
+ Changed src6 to instance of structure in6_addr.
+
2010-11-17 Michael Wiegand <michael.wiegand at greenbone.net>
Addressed more 64 bit compiler warnings.
Modified: trunk/openvas-libraries/misc/ids_send.c
===================================================================
--- trunk/openvas-libraries/misc/ids_send.c 2010-11-17 12:06:02 UTC (rev 9427)
+++ trunk/openvas-libraries/misc/ids_send.c 2010-11-17 13:04:36 UTC (rev 9428)
@@ -692,7 +692,7 @@
{
int bpf;
struct in_addr dst, src;
- struct in6_addr *dst6, *src6;
+ struct in6_addr *dst6 = NULL, src6;
char *iface;
char filter[255];
char *src_host, *dst_host;
@@ -719,10 +719,9 @@
else
{
family = AF_INET6;
- bzero (src6, sizeof (*src6));
- iface = v6_routethrough (dst6, src6);
+ iface = v6_routethrough (dst6, &src6);
src_host =
- estrdup (inet_ntop (AF_INET6, src6, hostname, sizeof (hostname)));
+ estrdup (inet_ntop (AF_INET6, &src6, hostname, sizeof (hostname)));
dst_host =
estrdup (inet_ntop (AF_INET6, dst6, hostname, sizeof (hostname)));
}
More information about the Openvas-commits
mailing list