Paste: Simpler version

Author: Sam
Mode: factor
Date: Mon, 18 Jan 2010 11:50:33
Plain Text |
static void
to_be_or_not_to_be (void)
{
  /*
   * If all of the options that control our policy are disabled, then we
   * have no point in living.  Save the user some memory and exit.
   */
  /* you used to say live and let live... */
  size_t i;

  /* ...but in this ever changing world in which we live in... */
  for (i = 0; i < G_N_ELEMENTS (gvm_settings) && !live; i++)
    if (gvm_settings[i].type == TYPE_BOOL && *(int *) gvm_settings[i].var)
      return;

  dbg ("daemon exit: live and let die\n");
  exit (EXIT_SUCCESS);
}

New Annotation

Summary:
Author:
Mode:
Body: