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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu May 28 19:49:25 CEST 2009


Author: mattm
Date: 2009-05-28 19:49:25 +0200 (Thu, 28 May 2009)
New Revision: 3529

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/tests/common.c
Log:
	* src/tests/common.c (create_task): Rename NEW_TASK call to CREATE_TASK.
	(wait_for_task_start, wait_for_task_end): Rename STATUS call to
	GET_STATUS.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-05-28 17:43:48 UTC (rev 3528)
+++ trunk/openvas-manager/ChangeLog	2009-05-28 17:49:25 UTC (rev 3529)
@@ -1,5 +1,11 @@
 2009-05-28  Matthew Mundell <mmundell at intevation.de>
 
+	* src/tests/common.c (create_task): Rename NEW_TASK call to CREATE_TASK.
+	(wait_for_task_start, wait_for_task_end): Rename STATUS call to
+	GET_STATUS.
+
+2009-05-28  Matthew Mundell <mmundell at intevation.de>
+
 	Rename OMP STATUS to GET_STATUS.
 
 	* src/omp.c (help_text, client_state_t, omp_xml_handle_start_element)

Modified: trunk/openvas-manager/src/tests/common.c
===================================================================
--- trunk/openvas-manager/src/tests/common.c	2009-05-28 17:43:48 UTC (rev 3528)
+++ trunk/openvas-manager/src/tests/common.c	2009-05-28 17:49:25 UTC (rev 3529)
@@ -957,11 +957,11 @@
   /* Create the OMP request. */
 
   gchar* new_task_request;
-  new_task_request = g_strdup_printf ("<new_task>"
+  new_task_request = g_strdup_printf ("<create_task>"
                                       "<task_file>%s</task_file>"
                                       "<identifier>%s</identifier>"
                                       "<comment>%s</comment>"
-                                      "</new_task>",
+                                      "</create_task>",
                                       new_task_file,
                                       identifier,
                                       comment);
@@ -1091,7 +1091,7 @@
 {
   while (1)
     {
-      if (sendf_to_manager (session, "<status/>") == -1)
+      if (sendf_to_manager (session, "<get_status/>") == -1)
         return -1;
 
       /* Read the response. */
@@ -1193,7 +1193,7 @@
   tracef ("wait_for_task_end\n");
   while (1)
     {
-      if (sendf_to_manager (session, "<status/>") == -1)
+      if (sendf_to_manager (session, "<get_status/>") == -1)
         return -1;
 
       /* Read the response. */



More information about the Openvas-commits mailing list