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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 31 08:59:02 CEST 2009


Author: felix
Date: 2009-03-31 08:59:01 +0200 (Tue, 31 Mar 2009)
New Revision: 2955

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/nessus/prefs_dialog/prefs_comment.c
Log:
* nessus/prefs_dialog/prefs_comment.c: K&R Style replacements, minor
reformatting.


Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-03-31 05:06:59 UTC (rev 2954)
+++ trunk/openvas-client/ChangeLog	2009-03-31 06:59:01 UTC (rev 2955)
@@ -1,3 +1,8 @@
+2009-03-31  Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
+	* nessus/prefs_dialog/prefs_comment.c: K&R Style replacements, minor
+	reformatting.
+
 2009-03-30  Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
 	Stricter use of g_free for strings allocated by glib, reformatting,

Modified: trunk/openvas-client/nessus/prefs_dialog/prefs_comment.c
===================================================================
--- trunk/openvas-client/nessus/prefs_dialog/prefs_comment.c	2009-03-31 05:06:59 UTC (rev 2954)
+++ trunk/openvas-client/nessus/prefs_dialog/prefs_comment.c	2009-03-31 06:59:01 UTC (rev 2955)
@@ -26,13 +26,11 @@
 #include "preferences.h"
 #include "nessus_i18n.h"
 
-/*
- * Fill comment textview with preferences
+/**
+ * @brief Fill comment textview with preferences.
  */
 void
-fill_comment(context, ctrls)
-  struct context *context;
-  struct arglist *ctrls;
+fill_comment (struct context *context, struct arglist *ctrls)
 {
   GtkTextBuffer *buffer = gtk_text_view_get_buffer(
       GTK_TEXT_VIEW(arg_get_value(ctrls, "COMMENT")));
@@ -52,13 +50,11 @@
     gtk_text_buffer_set_text(buffer, "", -1);
 }
 
-/*
- * Save comment from textview to preferences
+/**
+ * @brief Save comment from textview to preferences.
  */
 void
-store_comment(context, ctrls)
-  struct context *context;
-  struct arglist *ctrls;
+store_comment (struct context *context, struct arglist *ctrls)
 {
   GtkTextBuffer *buffer = gtk_text_view_get_buffer(
       GTK_TEXT_VIEW(arg_get_value(ctrls, "COMMENT")));
@@ -74,11 +70,11 @@
   g_free(escaped);
 }
 
-/*
- * Build a box element with a comment text editing field.
+/**
+ * @brief Build a box element with a comment text editing field.
  */
 struct arglist *
-prefs_dialog_comment(void)
+prefs_dialog_comment (void)
 {
   struct arglist *ctrls = emalloc(sizeof(struct arglist));
   GtkWidget *box, *scrolledwindow, *textview;



More information about the Openvas-commits mailing list