aboutsummaryrefslogtreecommitdiff
path: root/src/os/mem.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/mem.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/mem.c')
-rw-r--r--src/os/mem.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/os/mem.c b/src/os/mem.c
index 037b5931e4..b4335fd179 100644
--- a/src/os/mem.c
+++ b/src/os/mem.c
@@ -1,26 +1,13 @@
-/* vi:set ts=8 sts=4 sw=4:
- *
- * VIM - Vi IMproved by Bram Moolenaar
- *
- * Do ":help uganda" in Vim to read copying and usage conditions.
- * Do ":help credits" in Vim to see a list of people who contributed.
- * See README.txt for an overview of the Vim source code.
- */
-
-/*
- * os.c -- OS-level calls to query hardware, etc.
- */
+// os.c -- OS-level calls to query hardware, etc.
#include <uv.h>
#include "os/os.h"
-/*
- * Return total amount of memory available in Kbyte.
- * Doesn't change when memory has been allocated.
- */
+// Return total amount of memory available in Kbyte.
+// Doesn't change when memory has been allocated.
long_u os_total_mem(int special) {
- /* We need to return memory in *Kbytes* but uv_get_total_memory() returns the
- * number of bytes of total memory. */
+ // We need to return memory in *Kbytes* but uv_get_total_memory() returns the
+ // number of bytes of total memory.
return uv_get_total_memory() >> 10;
}