Merge pull request #270 from link2xt/get_backoff_time_offset-safe

Mark get_backoff_time_offset as safe
This commit is contained in:
Friedel Ziegelmayer
2019-07-31 22:03:29 +02:00
committed by GitHub

View File

@@ -251,7 +251,7 @@ fn dc_job_delete(context: &Context, job: &dc_job_t) -> bool {
* Tools
******************************************************************************/
#[allow(non_snake_case)]
unsafe fn get_backoff_time_offset(c_tries: libc::c_int) -> i64 {
fn get_backoff_time_offset(c_tries: libc::c_int) -> i64 {
// results in ~3 weeks for the last backoff timespan
let mut N = 2_i32.pow((c_tries - 1) as u32);
N = N * 60;