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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 14 12:18:05 CEST 2010


Author: felix
Date: 2010-04-14 12:18:04 +0200 (Wed, 14 Apr 2010)
New Revision: 7290

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
   trunk/openvas-manager/src/otp.c
Log:
Cosmetics.
* src/otp.c (category_number): Doc string formatting.
* src/omp.c (omp_xml_handle_end_element): Added comments.


Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2010-04-13 15:43:57 UTC (rev 7289)
+++ trunk/openvas-manager/ChangeLog	2010-04-14 10:18:04 UTC (rev 7290)
@@ -1,3 +1,11 @@
+2010-04-14 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
+	Cosmetics.
+
+	* src/otp.c (category_number): Doc string formatting.
+
+	* src/omp.c (omp_xml_handle_end_element): Added comments.
+
 2010-04-13 Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
 	* INSTALL: Added some missing optional runtime dependencies, as

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2010-04-13 15:43:57 UTC (rev 7289)
+++ trunk/openvas-manager/src/omp.c	2010-04-14 10:18:04 UTC (rev 7290)
@@ -5423,6 +5423,7 @@
       case CLIENT_AUTHENTICATE:
         switch (authenticate (&current_credentials))
           {
+            // Authentication succeeded.
             case 0:
               if (load_tasks ())
                 {
@@ -5439,11 +5440,13 @@
                   set_client_state (CLIENT_AUTHENTIC);
                 }
               break;
+            // Authentication failed.
             case 1:
               free_credentials (&current_credentials);
               SEND_TO_CLIENT_OR_FAIL (XML_ERROR_AUTH_FAILED ("authenticate"));
               set_client_state (CLIENT_TOP);
               break;
+            // Error while authenticating.
             case -1:
             default:
               free_credentials (&current_credentials);

Modified: trunk/openvas-manager/src/otp.c
===================================================================
--- trunk/openvas-manager/src/otp.c	2010-04-13 15:43:57 UTC (rev 7289)
+++ trunk/openvas-manager/src/otp.c	2010-04-14 10:18:04 UTC (rev 7290)
@@ -87,7 +87,8 @@
   g_slist_free ((GSList*) list);
 }
 
-/** @brief Return the number associated with a category name.
+/**
+ * @brief Return the number associated with a category name.
  *
  * @param  category  The category name.
  *



More information about the Openvas-commits mailing list