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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 7 16:00:28 CEST 2009


Author: mattm
Date: 2009-10-07 16:00:26 +0200 (Wed, 07 Oct 2009)
New Revision: 5433

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/openvas/cli.c
   trunk/openvas-client/openvas/prefs_dialog/prefs_dialog_auth.c
Log:
	* openvas/prefs_dialog/prefs_dialog_auth.c (prefs_dialog_auth_do_connect):
	Add const to return and err.
	(prefs_dialog_auth_connect_dialog): Add const to err.

	* openvas/cli.c (cli_connect_to_scanner): Add const to err.

Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-07 13:57:34 UTC (rev 5432)
+++ trunk/openvas-client/ChangeLog	2009-10-07 14:00:26 UTC (rev 5433)
@@ -1,5 +1,13 @@
 2009-10-07  Matthew Mundell <matthew.mundell at intevation.de>
 
+	* openvas/prefs_dialog/prefs_dialog_auth.c (prefs_dialog_auth_do_connect):
+	Add const to return and err.
+	(prefs_dialog_auth_connect_dialog): Add const to err.
+
+	* openvas/cli.c (cli_connect_to_scanner): Add const to err.
+
+2009-10-07  Matthew Mundell <matthew.mundell at intevation.de>
+
 	* openvas/cli.c: Flush trailing whitespace.
 
 2009-10-07  Matthew Mundell <matthew.mundell at intevation.de>

Modified: trunk/openvas-client/openvas/cli.c
===================================================================
--- trunk/openvas-client/openvas/cli.c	2009-10-07 13:57:34 UTC (rev 5432)
+++ trunk/openvas-client/openvas/cli.c	2009-10-07 14:00:26 UTC (rev 5433)
@@ -314,7 +314,7 @@
 int
 cli_connect_to_scanner (struct cli_args * cli)
 {
- char * err;
+ const char * err;
  prefs_set_string(Context, "nessusd_host", cli->server);
  prefs_set_int(Context, "nessusd_port", cli->port);
  prefs_set_string(Context, "nessusd_user", cli->login);

Modified: trunk/openvas-client/openvas/prefs_dialog/prefs_dialog_auth.c
===================================================================
--- trunk/openvas-client/openvas/prefs_dialog/prefs_dialog_auth.c	2009-10-07 13:57:34 UTC (rev 5432)
+++ trunk/openvas-client/openvas/prefs_dialog/prefs_dialog_auth.c	2009-10-07 14:00:26 UTC (rev 5433)
@@ -189,7 +189,7 @@
 }
 
 
-char *
+const char *
 prefs_dialog_auth_do_connect (struct context *context, gpointer ctrls)
 {
   void *context_window = arg_get_value(MainDialog, "CONTEXT");
@@ -199,7 +199,7 @@
   GtkWidget *vbox;
   GtkWidget *label;
   gchar *text;
-  char *err;
+  const char *err;
   int i;
 
   if(context_window)
@@ -532,7 +532,7 @@
       int port;
       const char *username;
       const char *password;
-      char *err;
+      const char *err;
       const char *trusted_ca;
       const char *cert_file;
       const char *key_file;



More information about the Openvas-commits mailing list