diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-09-29 19:48:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 19:48:50 +0200 |
commit | d90fb1c0bfc1e64c783c385a79e7de87013dadba (patch) | |
tree | 5a27261e9aed7ebdb95122fc888811ea5f903cc8 /src/nvim/os/users.c | |
parent | ec4731d982031e363a59efd4566fc72234bb43c8 (diff) | |
download | rneovim-d90fb1c0bfc1e64c783c385a79e7de87013dadba.tar.gz rneovim-d90fb1c0bfc1e64c783c385a79e7de87013dadba.tar.bz2 rneovim-d90fb1c0bfc1e64c783c385a79e7de87013dadba.zip |
Refactor/uncrustify (#15790)
* refactor: format with uncrustify
* fixup(dundar): fix functions comments
* fixup(dundar): remove space between variable and ++/--
* fixup(dundar): better workaround for macro attributes
This is done to be able to better use uncrustify rules for macros
* fixup(justin): make preprocessors follow neovim style guide
Diffstat (limited to 'src/nvim/os/users.c')
-rw-r--r-- | src/nvim/os/users.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/os/users.c b/src/nvim/os/users.c index 2687c66f24..fd7ead68da 100644 --- a/src/nvim/os/users.c +++ b/src/nvim/os/users.c @@ -43,7 +43,7 @@ int os_get_usernames(garray_T *users) } ga_init(users, sizeof(char *), 20); -# if defined(HAVE_GETPWENT) && defined(HAVE_PWD_H) +#if defined(HAVE_GETPWENT) && defined(HAVE_PWD_H) { struct passwd *pw; @@ -53,7 +53,7 @@ int os_get_usernames(garray_T *users) } endpwent(); } -# elif defined(WIN32) +#elif defined(WIN32) { DWORD nusers = 0, ntotal = 0, i; PUSER_INFO_0 uinfo; @@ -73,8 +73,8 @@ int os_get_usernames(garray_T *users) NetApiBufferFree(uinfo); } } -# endif -# if defined(HAVE_GETPWNAM) +#endif +#if defined(HAVE_GETPWNAM) { const char *user_env = os_getenv("USER"); @@ -104,7 +104,7 @@ int os_get_usernames(garray_T *users) } } } -# endif +#endif return OK; } |