From d90fb1c0bfc1e64c783c385a79e7de87013dadba Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Wed, 29 Sep 2021 19:48:50 +0200 Subject: 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 --- src/nvim/os/users.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/nvim/os/users.c') 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; } -- cgit