aboutsummaryrefslogtreecommitdiff
path: root/src/os/env.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/env.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/env.c')
-rw-r--r--src/os/env.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/os/env.c b/src/os/env.c
index 91b27e67a9..cf08a33f96 100644
--- a/src/os/env.c
+++ b/src/os/env.c
@@ -1,15 +1,4 @@
-/* vi:set ts=2 sts=2 sw=2:
- *
- * 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.
- */
-
-/*
- * env.c -- environment variable access
- */
+// env.c -- environment variable access
#include <uv.h>
@@ -33,15 +22,13 @@ int os_setenv(const char *name, const char *value, int overwrite)
char *os_getenvname_at_index(size_t index)
{
# if defined(AMIGA) || defined(__MRC__) || defined(__SC__)
- /*
- * No environ[] on the Amiga and on the Mac (using MPW).
- */
+ // No environ[] on the Amiga and on the Mac (using MPW).
return NULL;
# else
# if defined(HAVE__NSGETENVIRON)
char **environ = *_NSGetEnviron();
# elif !defined(__WIN32__)
- /* Borland C++ 5.2 has this in a header file. */
+ // Borland C++ 5.2 has this in a header file.
extern char **environ;
# endif
// check if index is inside the environ array