[Openvas-commits] r2906 - in trunk/openvas-client: . nessus
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 26 08:43:31 CET 2009
Author: felix
Date: 2009-03-26 08:43:30 +0100 (Thu, 26 Mar 2009)
New Revision: 2906
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/nessus/comm.c
Log:
Cosmetics in comm module.
* nessus/comm.c: Minor reformatting.
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2009-03-26 00:49:28 UTC (rev 2905)
+++ trunk/openvas-client/ChangeLog 2009-03-26 07:43:30 UTC (rev 2906)
@@ -1,3 +1,9 @@
+2009-03-26 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
+ Cosmetics in comm module.
+
+ * nessus/comm.c: Minor reformatting.
+
2009-03-25 Felix Wolfsteller <felix.wolfsteller at intevation.de>
Resolved compiler warnings.
Modified: trunk/openvas-client/nessus/comm.c
===================================================================
--- trunk/openvas-client/nessus/comm.c 2009-03-26 00:49:28 UTC (rev 2905)
+++ trunk/openvas-client/nessus/comm.c 2009-03-26 07:43:30 UTC (rev 2906)
@@ -292,11 +292,6 @@
}
-
-
-
-
-
/**
* @brief Initializes the communication between the server and the client.
*
@@ -344,10 +339,9 @@
* @return Always returns 0.
*/
int
-comm_parse_preference(struct context *context,
- struct arglist *serv_prefs, struct arglist *serv_infos,
- struct arglist *plugs_prefs, char *buf, char *value,
- int warn_about_unknown_plugins)
+comm_parse_preference (struct context *context, struct arglist *serv_prefs,
+ struct arglist *serv_infos, struct arglist *plugs_prefs,
+ char *buf, char *value, int warn_about_unknown_plugins)
{
char *pref;
char *v;
@@ -654,6 +648,7 @@
return (0);
}
+
/**
* @brief Sends entries from preference arglist to server.
*
@@ -968,7 +963,7 @@
* @return 0 on success or empty fname argument, -1 on error.
*/
int
-comm_send_file(struct context* context, char* fname)
+comm_send_file (struct context* context, char* fname)
{
int fd;
struct stat stt;
@@ -981,10 +976,10 @@
fd = open(fname, O_RDONLY);
if(fd < 0)
- {
- show_error(_("Can't open %s: %s"), fname, strerror(errno));
- return -1;
- }
+ {
+ show_error(_("Can't open %s: %s"), fname, strerror(errno));
+ return -1;
+ }
fstat(fd, &stt);
len = (int)stt.st_size;
@@ -997,8 +992,8 @@
{
int m = 0, n;
- bzero(buff, sizeof(buff));
- n = read(fd, buff, MIN(tot, sizeof(buff)));
+ bzero (buff, sizeof(buff));
+ n = read (fd, buff, MIN(tot, sizeof(buff)));
while(m < n)
{
int e;
@@ -1247,9 +1242,9 @@
* the data parameter.
*/
static int
-update_existing_plugin(struct context *context,
- const char * oid, const char * md5sum,
- struct nessus_plugin * plugin, void * data)
+update_existing_plugin (struct context *context,
+ const char * oid, const char * md5sum,
+ struct nessus_plugin * plugin, void * data)
{
if (plugin && strcmp(plugin->md5sum, md5sum) == 0)
{
More information about the Openvas-commits
mailing list