From 4e29a820b60148f2371cf0aba219712faba56a1f Mon Sep 17 00:00:00 2001 From: Thomas Wienecke Date: Thu, 27 Mar 2014 13:04:26 +0100 Subject: 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. --- src/os/os.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/os/os.h') 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 -- cgit