aboutsummaryrefslogtreecommitdiff
path: root/src/os/os.h
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/os.h
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/os.h')
-rw-r--r--src/os/os.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os/os.h b/src/os/os.h
index 3510fad9ca..eb25735d6f 100644
--- a/src/os/os.h
+++ b/src/os/os.h
@@ -4,7 +4,7 @@
#include "vim.h"
long_u os_total_mem(int special);
-int os_chdir(char *path);
+int os_chdir(const char *path);
int os_dirname(char_u *buf, size_t len);
int os_get_absolute_path(char_u *fname, char_u *buf, int len, int force);
int os_is_absolute_path(const char_u *fname);
@@ -17,8 +17,8 @@ int os_get_usernames(garray_T *usernames);
int os_get_user_name(char *s, size_t len);
int os_get_uname(uid_t uid, char *s, size_t len);
char *os_get_user_directory(const char *name);
-long os_getperm(const char_u *name);
+int32_t os_getperm(const char_u *name);
int os_setperm(const char_u *name, int perm);
-int os_file_exists(char_u *name);
+int os_file_exists(const char_u *name);
-#endif
+#endif // NEOVIM_OS_OS_H