helper: rename camelcase symbols
No cross dependency, just changes internal to each file/function. Change-Id: I16568ddcd8304f5e6748c2e19f32421b047b0357 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6300 Tested-by: jenkins
This commit is contained in:
@@ -473,11 +473,11 @@ void kept_alive(void)
|
||||
/* if we sleep for extended periods of time, we must invoke keep_alive() intermittently */
|
||||
void alive_sleep(uint64_t ms)
|
||||
{
|
||||
uint64_t napTime = 10;
|
||||
for (uint64_t i = 0; i < ms; i += napTime) {
|
||||
uint64_t nap_time = 10;
|
||||
for (uint64_t i = 0; i < ms; i += nap_time) {
|
||||
uint64_t sleep_a_bit = ms - i;
|
||||
if (sleep_a_bit > napTime)
|
||||
sleep_a_bit = napTime;
|
||||
if (sleep_a_bit > nap_time)
|
||||
sleep_a_bit = nap_time;
|
||||
|
||||
usleep(sleep_a_bit * 1000);
|
||||
keep_alive();
|
||||
|
||||
Reference in New Issue
Block a user