From ce3c38a5d8e9542e71e76c2a93c8ee3584ce31e9 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 10 Sep 2013 23:29:17 +0200 Subject: [PATCH] include: make uv_process_options_t.cwd const 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. --- include/uv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uv.h b/include/uv.h index e88019f9..f14f24e4 100644 --- a/include/uv.h +++ b/include/uv.h @@ -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.