Repeat recovers on databases

Bron Gondwana brong at fastmail.fm
Fri Jun 19 01:46:41 EDT 2009



On Fri, 19 Jun 2009 06:47 +0200, "Gabor Gombas" <gombasg at sztaki.hu> wrote:
> On Fri, Jun 19, 2009 at 10:09:16AM +1000, Bron Gondwana wrote:
> 
> > @@ -192,6 +192,18 @@ struct db_list {
> >  static time_t global_recovery = 0;
> >  static struct db_list *open_db = NULL;
> >  
> > +#define BIT32_MAX 4294967295U
> > +
> > +#if UINT_MAX == BIT32_MAX
> > +typedef unsigned int bit32;
> > +#elif ULONG_MAX == BIT32_MAX
> > +typedef unsigned long bit32;
> > +#elif USHRT_MAX == BIT32_MAX
> > +typedef unsigned short bit32;
> > +#else
> > +#error dont know what to use for bit32
> > +#endif
> > +
> 
> If you're touching this code, why not use standard stdint.h types like
> uint32_t here?

Yeah, I was just thinking that actually.  Mostly because, well - that's what's already there!

I'll do a stdint rewrite of it all some time soon :)

Bron.
-- 
  Bron Gondwana
  brong at fastmail.fm



More information about the Cyrus-devel mailing list