Skip to content

Commit

Permalink
Tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Feb 5, 2015
1 parent 3454c50 commit d0e82a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/etc/tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def update_counts(current_name):
'src/llvm',
'src/gyp',
'src/libbacktrace',
'src/libuv',
'src/compiler-rt',
'src/rt/hoedown',
'src/rustllvm',
Expand Down
5 changes: 3 additions & 2 deletions src/rt/rust_builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ extern char **environ;
#endif
#endif

#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__) || defined(__DragonFly__) || defined(__OpenBSD__)
#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__) \
|| defined(__DragonFly__) || defined(__OpenBSD__)
extern char **environ;
#endif

Expand Down Expand Up @@ -235,7 +236,7 @@ const char * rust_load_self() {

/* get realpath if possible */
if ((argv[0] != NULL) && ((*argv[0] == '.') || (*argv[0] == '/')
|| (strstr(argv[0], "/") != NULL)))
|| (strstr(argv[0], "/") != NULL)))

self = realpath(argv[0], NULL);
else
Expand Down

0 comments on commit d0e82a6

Please sign in to comment.