Repeat recovers on databases
Gabor Gombas
gombasg at sztaki.hu
Fri Jun 19 00:47:14 EDT 2009
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?
Gabor
--
---------------------------------------------------------
MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
---------------------------------------------------------
More information about the Info-cyrus
mailing list