if (status != 0)
{
ERROR ("amqp plugin: camqp_connect failed. "
- "Will sleep for %i seconds.", interval_g);
- sleep (interval_g);
+ "Will sleep for %u seconds.",
+ (unsigned int) CDTIME_T_TO_TIME_T (interval_g));
+ sleep ((unsigned int) CDTIME_T_TO_TIME_T (interval_g));
continue;
}
if (status < 0)
{
ERROR ("amqp plugin: amqp_simple_wait_frame failed. "
- "Will sleep for %i seconds.", interval_g);
+ "Will sleep for %u seconds.",
+ (unsigned int) CDTIME_T_TO_TIME_T (interval_g));
camqp_close_connection (conf);
- sleep (interval_g);
+ sleep ((unsigned int) CDTIME_T_TO_TIME_T (interval_g));
continue;
}