[Openvas-commits] r5428 - in trunk/openvas-client: . openvas

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 7 12:57:01 CEST 2009


Author: jan
Date: 2009-10-07 12:56:59 +0200 (Wed, 07 Oct 2009)
New Revision: 5428

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/openvas/openvas-client.c
   trunk/openvas-client/openvas/openvas-client.h
Log:
* openvas/openvas-client.c (connect_to_scanner): Changed
return value to be const.

* openvas/openvas-client.c: Updated proto accordingly.



Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-07 10:49:43 UTC (rev 5427)
+++ trunk/openvas-client/ChangeLog	2009-10-07 10:56:59 UTC (rev 5428)
@@ -1,5 +1,12 @@
 2009-10-07  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
 
+	* openvas/openvas-client.c (connect_to_scanner): Changed
+	return value to be const.
+
+	* openvas/openvas-client.c: Updated proto accordingly.
+
+2009-10-07  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
+
 	* openvas/context.c (context_collect, context_new, context_add,
 	context_collect_servers), openvas/openvas-client.c (main),
 	openvas/pdf_output.c (arglist_to_pdf),

Modified: trunk/openvas-client/openvas/openvas-client.c
===================================================================
--- trunk/openvas-client/openvas/openvas-client.c	2009-10-07 10:49:43 UTC (rev 5427)
+++ trunk/openvas-client/openvas/openvas-client.c	2009-10-07 10:56:59 UTC (rev 5428)
@@ -684,8 +684,7 @@
  *
  * @return NULL in case of success, error message text otherwise.
  */
-// FIX const?
-char *
+const char *
 connect_to_scanner (struct context * context)
 {
   const char * hostname;

Modified: trunk/openvas-client/openvas/openvas-client.h
===================================================================
--- trunk/openvas-client/openvas/openvas-client.h	2009-10-07 10:49:43 UTC (rev 5427)
+++ trunk/openvas-client/openvas/openvas-client.h	2009-10-07 10:56:59 UTC (rev 5428)
@@ -32,8 +32,7 @@
 
 #include "context.h"
 
-// FIX const?
-char * connect_to_scanner(struct context *);
+const char * connect_to_scanner(struct context *);
 #ifdef USE_OMP
 const char * refresh_server (struct context *);
 #endif



More information about the Openvas-commits mailing list