src/stored/reserve.c
static void pop_reserve_messages(JCR *jcr)
{
   alist *msgs;
   char *msg;

   jcr->lock();
   msgs = jcr->reserve_msgs;
   if (!msgs) {
      goto bail_out;
   }
   while ((msg = (char *)msgs->pop())) {
      free(msg);
   }
bail_out:
   jcr->unlock();
}
/*
 * Pop and release any reservations messages
 */
Pop and release any reservations messages
Pop and release any reservations messages
static void pop_reserve_messages(JCR *jcr)
{
   alist *msgs;
   char *msg;
   jcr->lock();
   msgs = jcr->reserve_msgs;
   if (!msgs) {
      goto bail_out;
   }
   while ((msg = (char *)msgs->pop())) {
      free(msg);
   }
bail_out:
   jcr->unlock();
}
static void pop_reserve_messages ( JCR * jcr ) { alist * msgs ; char * msg ; jcr -> lock ( ) ; msgs = jcr -> reserve_msgs ; if ( ! msgs ) { goto bail_out ; } while ( ( msg = ( char * ) msgs -> pop ( ) ) ) { free ( msg ) ; } bail_out : jcr -> unlock ( ) ; }
Pop and release any reservations messages
Pop and release any reservations messages