From c1f3f2d556313f9d3674bb04b6fa893bb2bcd63a Mon Sep 17 00:00:00 2001
From: Julien Boeuf <jboeuf@google.com>
Date: Mon, 18 May 2015 21:09:23 -0700
Subject: [PATCH] Extension should return a const char *.

---
 include/grpc/support/subprocess.h   | 2 +-
 src/core/support/subprocess_posix.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/grpc/support/subprocess.h b/include/grpc/support/subprocess.h
index c59751da83..1b7431e7d9 100644
--- a/include/grpc/support/subprocess.h
+++ b/include/grpc/support/subprocess.h
@@ -37,7 +37,7 @@
 typedef struct gpr_subprocess gpr_subprocess;
 
 /* .exe on windows, empty on unices */
-char *gpr_subprocess_binary_extension();
+const char *gpr_subprocess_binary_extension();
 
 gpr_subprocess *gpr_subprocess_create(int argc, char **argv);
 /* if subprocess has not been joined, kill it */
diff --git a/src/core/support/subprocess_posix.c b/src/core/support/subprocess_posix.c
index 4580537aa8..642520bb47 100644
--- a/src/core/support/subprocess_posix.c
+++ b/src/core/support/subprocess_posix.c
@@ -55,7 +55,7 @@ struct gpr_subprocess {
   int joined;
 };
 
-char *gpr_subprocess_binary_extension() { return ""; }
+const char *gpr_subprocess_binary_extension() { return ""; }
 
 gpr_subprocess *gpr_subprocess_create(int argc, char **argv) {
   gpr_subprocess *r;
-- 
GitLab