Skip to content

Commit

Permalink
Extension should return a const char *.
Browse files Browse the repository at this point in the history
  • Loading branch information
jboeuf committed May 19, 2015
1 parent 5a8b87c commit c1f3f2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/grpc/support/subprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/core/support/subprocess_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c1f3f2d

Please sign in to comment.