[Openvas-commits] r5706 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Sat Oct 24 14:00:30 CEST 2009
Author: mattm
Date: 2009-10-24 14:00:30 +0200 (Sat, 24 Oct 2009)
New Revision: 5706
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/lsc_user.c
Log:
* src/lsc_user.c: Add fullstops to a few comments. Convert printfs to
g_debugs.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2009-10-24 11:54:18 UTC (rev 5705)
+++ trunk/openvas-manager/ChangeLog 2009-10-24 12:00:30 UTC (rev 5706)
@@ -1,5 +1,10 @@
2009-10-23 Matthew Mundell <matthew.mundell at intevation.de>
+ * src/lsc_user.c: Add fullstops to a few comments. Convert printfs to
+ g_debugs.
+
+2009-10-23 Matthew Mundell <matthew.mundell at intevation.de>
+
* src/lsc_user.c: Make docs and comments consistent.
2009-10-23 Matthew Mundell <matthew.mundell at intevation.de>
Modified: trunk/openvas-manager/src/lsc_user.c
===================================================================
--- trunk/openvas-manager/src/lsc_user.c 2009-10-24 11:54:18 UTC (rev 5705)
+++ trunk/openvas-manager/src/lsc_user.c 2009-10-24 12:00:30 UTC (rev 5706)
@@ -284,14 +284,14 @@
gchar *dir = NULL;
gchar *pubkey_stripped = NULL;
- /* Sanity-check essential parameters */
+ /* Sanity-check essential parameters. */
if (!passphrase_pub || !passphrase_priv)
{
g_debug ("%s: parameter error", __FUNCTION__);
return -1;
}
- /* Sanity check files */
+ /* Sanity check files. */
if (g_file_test (pubkey_file, G_FILE_TEST_EXISTS) == FALSE)
{
g_debug ("%s: failed to find public key %s", __FUNCTION__, pubkey_file);
@@ -343,10 +343,9 @@
|| (WIFEXITED (exit_status) == 0)
|| WEXITSTATUS (exit_status))
{
- printf ("Error creating private key file.");
- printf ("\tSpawned openssl process returned with %d.\n", exit_status);
- printf ("\t\t stdout: %s\n", astdout);
- printf ("\t\t stderr: %s\n", astderr);
+ g_debug ("%s: openssl failed with %d", __FUNCTION__, exit_status);
+ g_debug ("%s: stdout: %s", __FUNCTION__, astdout);
+ g_debug ("%s: stderr: %s", __FUNCTION__, astderr);
return -1;
}
@@ -794,7 +793,7 @@
if (ssh_pubkey_create (comment, key_password, public_key_path))
goto rm_key_exit;
- /* Create private key */
+ /* Create private key. */
if (ssh_privkey_create (public_key_path,
private_key_path,
More information about the Openvas-commits
mailing list