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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon May 18 17:46:21 CEST 2009


Author: mattm
Date: 2009-05-18 17:46:21 +0200 (Mon, 18 May 2009)
New Revision: 3409

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/tests/omp_modify_task_1.c
Log:
	* src/tests/omp_modify_task_1.c: Declare name.  Correct init of name.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-05-18 15:38:45 UTC (rev 3408)
+++ trunk/openvas-manager/ChangeLog	2009-05-18 15:46:21 UTC (rev 3409)
@@ -1,5 +1,9 @@
 2009-05-18  Matthew Mundell <mmundell at intevation.de>
 
+	* src/tests/omp_modify_task_1.c: Declare name.  Correct init of name.
+
+2009-05-18  Matthew Mundell <mmundell at intevation.de>
+
 	* src/omp.c (init_omp): Doc return.
 
 	* src/tasks_sql.h (init_manage): Return -1 on error instead of

Modified: trunk/openvas-manager/src/tests/omp_modify_task_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_modify_task_1.c	2009-05-18 15:38:45 UTC (rev 3408)
+++ trunk/openvas-manager/src/tests/omp_modify_task_1.c	2009-05-18 15:46:21 UTC (rev 3409)
@@ -40,6 +40,7 @@
   gnutls_session_t session1;
   gnutls_session_t session2;
   unsigned int id;
+  entity_t entity, name;
 
   socket1 = connect_to_manager (&session1);
   if (socket1 == -1) return EXIT_FAILURE;
@@ -98,7 +99,7 @@
       return EXIT_FAILURE;
     }
 
-  entity_t entity = NULL;
+  entity = NULL;
   read_entity (&session2, &entity);
 
   entity_t expected = add_entity (NULL, "modify_task_response", NULL);
@@ -140,7 +141,7 @@
       return EXIT_FAILURE;
     }
 
-  name = entity_child (response, "name");
+  name = entity_child (entity, "identifier");
   if (name && strcmp (entity_text (name), "Modified name") == 0)
     ret = EXIT_SUCCESS;
   else



More information about the Openvas-commits mailing list