diff options
Diffstat (limited to 'src/helper/jim-nvp.c')
-rw-r--r-- | src/helper/jim-nvp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helper/jim-nvp.c b/src/helper/jim-nvp.c index 4602a8db..d13bdfba 100644 --- a/src/helper/jim-nvp.c +++ b/src/helper/jim-nvp.c @@ -205,7 +205,7 @@ int Jim_GetOpt_Obj(Jim_GetOptInfo *goi, Jim_Obj **puthere) return JIM_ERR; } -int Jim_GetOpt_String(Jim_GetOptInfo *goi, char **puthere, int *len) +int Jim_GetOpt_String(Jim_GetOptInfo *goi, const char **puthere, int *len) { int r; Jim_Obj *o; @@ -215,8 +215,7 @@ int Jim_GetOpt_String(Jim_GetOptInfo *goi, char **puthere, int *len) if (r == JIM_OK) { cp = Jim_GetString(o, len); if (puthere) { - /* remove const */ - *puthere = (char *)(cp); + *puthere = cp; } } return r; |