Browse Source

return booleans for bool functions, not pointers

pull/17/head
Niels Werensteijn 8 years ago
parent
commit
ca6d1c69e4
  1. 4
      src/ts3init_cache.c

4
src/ts3init_cache.c

@ -88,7 +88,7 @@ bool ts3init_get_cookie_seed_for_packet_index(u8 packet_index, const u8* random_ @@ -88,7 +88,7 @@ bool ts3init_get_cookie_seed_for_packet_index(u8 packet_index, const u8* random_
(*cookie)[1] = result[1];
}
put_cpu_var(ts3init_cache);
return result;
return result != NULL;
}
bool ts3init_get_current_cookie_seed(const u8* random_seed, u64 (*cookie)[2], u8 *packet_index)
@ -116,5 +116,5 @@ bool ts3init_get_current_cookie_seed(const u8* random_seed, u64 (*cookie)[2], u8 @@ -116,5 +116,5 @@ bool ts3init_get_current_cookie_seed(const u8* random_seed, u64 (*cookie)[2], u8
(*cookie)[1] = result[1];
}
put_cpu_var(ts3init_cache);
return result;
return result != NULL;
}

Loading…
Cancel
Save