[Openvas-commits] r7923 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 3 19:21:02 CEST 2010


Author: mattm
Date: 2010-06-03 19:21:00 +0200 (Thu, 03 Jun 2010)
New Revision: 7923

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
Log:
	* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_AGENTS rename
	AGENT agent_id attrib to id, to match other resources.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2010-06-03 14:44:32 UTC (rev 7922)
+++ trunk/openvas-manager/ChangeLog	2010-06-03 17:21:00 UTC (rev 7923)
@@ -1,5 +1,10 @@
 2010-06-03  Matthew Mundell <matthew.mundell at greenbone.net>
 
+	* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_AGENTS rename
+	AGENT agent_id attrib to id, to match other resources.
+
+2010-06-03  Matthew Mundell <matthew.mundell at greenbone.net>
+
 	* src/omp.c (print_report_xml, omp_xml_handle_end_element): Print empty
 	string instead of NULL, when report host end time is NULL.
 

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2010-06-03 14:44:32 UTC (rev 7922)
+++ trunk/openvas-manager/src/omp.c	2010-06-03 17:21:00 UTC (rev 7923)
@@ -11628,7 +11628,7 @@
                     {
                       case 1: /* installer */
                         SENDF_TO_CLIENT_OR_FAIL
-                         ("<agent agent_id=\"%s\">"
+                         ("<agent id=\"%s\">"
                           "<name>%s</name>"
                           "<comment>%s</comment>"
                           "<package format=\"installer\">%s</package>"
@@ -11641,7 +11641,7 @@
                         break;
                       case 2: /* howto_install */
                         SENDF_TO_CLIENT_OR_FAIL
-                         ("<agent agent_id=\"%s\">"
+                         ("<agent id=\"%s\">"
                           "<name>%s</name>"
                           "<comment>%s</comment>"
                           "<package format=\"howto_install\">%s</package>"
@@ -11654,7 +11654,7 @@
                         break;
                       case 3: /* howto_use */
                         SENDF_TO_CLIENT_OR_FAIL
-                         ("<agent agent_id=\"%s\">"
+                         ("<agent id=\"%s\">"
                           "<name>%s</name>"
                           "<comment>%s</comment>"
                           "<package format=\"howto_use\">%s</package>"
@@ -11667,7 +11667,7 @@
                         break;
                       default:
                         SENDF_TO_CLIENT_OR_FAIL
-                         ("<agent agent_id=\"%s\">"
+                         ("<agent id=\"%s\">"
                           "<name>%s</name>"
                           "<comment>%s</comment>"
                           "<in_use>0</in_use>"



More information about the Openvas-commits mailing list