Advertisement
Guest User

Sam

a guest
Jan 18th, 2010
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. static void
  2. to_be_or_not_to_be (void)
  3. {
  4.   /*
  5.    * If all of the options that control our policy are disabled, then we
  6.    * have no point in living.  Save the user some memory and exit.
  7.    */
  8.   /* you used to say live and let live... */
  9.   size_t i;
  10.  
  11.   /* ...but in this ever changing world in which we live in... */
  12.   for (i = 0; i < G_N_ELEMENTS (gvm_settings); i++)
  13.     if (gvm_settings[i].type == TYPE_BOOL && *(int *) gvm_settings[i].var)
  14.       return;
  15.  
  16.   dbg ("daemon exit: live and let die\n");
  17.   exit (EXIT_SUCCESS);
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement