Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
include: make uv_process_options_t.cwd const
Browse files Browse the repository at this point in the history
There is no reason for it to be non-const, libuv treats it as a
read-only input.  Make it a pointer to a const string.
  • Loading branch information
bnoordhuis committed Sep 10, 2013
1 parent adcc227 commit ce3c38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uv.h
Expand Up @@ -1417,7 +1417,7 @@ typedef struct uv_process_options_s {
* If non-null this represents a directory the subprocess should execute
* in. Stands for current working directory.
*/
char* cwd;
const char* cwd;
/*
* Various flags that control how uv_spawn() behaves. See the definition of
* `enum uv_process_flags` below.
Expand Down

0 comments on commit ce3c38a

Please sign in to comment.