aboutsummaryrefslogtreecommitdiff
path: root/src/os/time.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-27 13:04:26 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-27 19:57:55 -0300
commit4e29a820b60148f2371cf0aba219712faba56a1f (patch)
treea8dd17cc6af8b578d98e5b9b11a97a7fd21e6e47 /src/os/time.c
parent5762c4e528cbd6629319bf3958d1f6554b399b20 (diff)
downloadrneovim-4e29a820b60148f2371cf0aba219712faba56a1f.tar.gz
rneovim-4e29a820b60148f2371cf0aba219712faba56a1f.tar.bz2
rneovim-4e29a820b60148f2371cf0aba219712faba56a1f.zip
Address clint warnings and other style issues.
* Add const. * Fix conditions (move && from end to start of line). * Use int32_t instead of long. * Use //-style comments.
Diffstat (limited to 'src/os/time.c')
-rw-r--r--src/os/time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os/time.c b/src/os/time.c
index f14a69264e..c0436595f6 100644
--- a/src/os/time.c
+++ b/src/os/time.c
@@ -22,9 +22,9 @@ void os_delay(uint64_t ms, bool ignoreinput)
int old_tmode;
if (ignoreinput) {
- /* Go to cooked mode without echo, to allow SIGINT interrupting us
- * here. But we don't want QUIT to kill us (CTRL-\ used in a
- * shell may produce SIGQUIT). */
+ // Go to cooked mode without echo, to allow SIGINT interrupting us
+ // here. But we don't want QUIT to kill us (CTRL-\ used in a
+ // shell may produce SIGQUIT).
in_os_delay = true;
old_tmode = curr_tmode;
@@ -43,7 +43,7 @@ void os_delay(uint64_t ms, bool ignoreinput)
static void delay(uint64_t ms)
{
uint64_t hrtime;
- int64_t ns = ms * 1000000; /* convert to nanoseconds */
+ int64_t ns = ms * 1000000; // convert to nanoseconds
uv_mutex_lock(&delay_mutex);