Author: mattm
Date: 2017-08-12 16:38:09 +0200 (Sat, 12 Aug 2017)
New Revision: 29344

Modified:
   trunk/gvm/ChangeLog
   trunk/gvm/src/gvmd.c
Log:
        * src/gvmd.c (update_nvt_cache_retry): Remove args.  Always the same.
        (fork_update_nvt_cache): Update call accordingly.

Modified: trunk/gvm/ChangeLog
===================================================================
--- trunk/gvm/ChangeLog 2017-08-12 14:35:18 UTC (rev 29343)
+++ trunk/gvm/ChangeLog 2017-08-12 14:38:09 UTC (rev 29344)
@@ -1,5 +1,10 @@
 2017-08-12  Matthew Mundell <matthew.mund...@greenbone.net>
 
+       * src/gvmd.c (update_nvt_cache_retry): Remove args.  Always the same.
+       (fork_update_nvt_cache): Update call accordingly.
+
+2017-08-12  Matthew Mundell <matthew.mund...@greenbone.net>
+
        Remove remnants of --rebuild.
 
        * src/gmp.c (init_gmp): Correct arg doc.

Modified: trunk/gvm/src/gvmd.c
===================================================================
--- trunk/gvm/src/gvmd.c        2017-08-12 14:35:18 UTC (rev 29343)
+++ trunk/gvm/src/gvmd.c        2017-08-12 14:38:09 UTC (rev 29344)
@@ -1015,13 +1015,10 @@
  * Forks a child process to rebuild the nvt cache, retrying again if the
  * child process reports that the scanner is still loading.
  *
- * @param[in]  register_cleanup        Whether to register cleanup with atexit.
- * @param[in]  skip_create_tables      Whether to skip table creation.
- *
  * @return Exit status of child spawned to do rebuild.
  */
 static int
-update_nvt_cache_retry (int register_cleanup, int skip_create_tables)
+update_nvt_cache_retry ()
 {
   proctitle_set ("gvmd: Reloading");
 
@@ -1043,7 +1040,7 @@
       else if (child_pid == 0)
         {
           /* Child: Try reload. */
-          int ret = update_nvt_cache (register_cleanup, skip_create_tables);
+          int ret = update_nvt_cache (0, 1);
 
           exit (ret);
         }
@@ -1103,7 +1100,7 @@
 
         /* Update the cache. */
 
-        update_nvt_cache_retry (0, 1);
+        update_nvt_cache_retry ();
 
         /* Exit. */
 

_______________________________________________
Openvas-commits mailing list
Openvas-commits@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits

Reply via email to