X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Fjim-nvp.h;h=7b4a491d3320831ee1b8d7c490cfb9445de8ec5a;hb=38d053d11b507cc762dc99ec7882d15d755f6c41;hp=05d79c4a7d899d5c519f908853c70bfa9895221c;hpb=8b00e56e6433cff3ff818835953b27765aaabab0;p=openocd.git diff --git a/src/helper/jim-nvp.h b/src/helper/jim-nvp.h index 05d79c4a7d..7b4a491d33 100644 --- a/src/helper/jim-nvp.h +++ b/src/helper/jim-nvp.h @@ -41,8 +41,8 @@ * official policies, either expressed or implied, of the Jim Tcl Project. */ -#ifndef JIM_NVP_H -#define JIM_NVP_H +#ifndef OPENOCD_HELPER_JIM_NVP_H +#define OPENOCD_HELPER_JIM_NVP_H #include @@ -245,7 +245,7 @@ int Jim_GetOpt_Obj(Jim_GetOptInfo *goi, Jim_Obj **puthere); * \param puthere - where param is put * \param len - return its length */ -int Jim_GetOpt_String(Jim_GetOptInfo *goi, char **puthere, int *len); +int Jim_GetOpt_String(Jim_GetOptInfo *goi, const char **puthere, int *len); /** Remove argv[0] as double. * @@ -326,4 +326,4 @@ void Jim_GetOpt_NvpUnknown(Jim_GetOptInfo *goi, const Jim_Nvp *lookup, int hadpr */ int Jim_GetOpt_Enum(Jim_GetOptInfo *goi, const char *const *lookup, int *puthere); -#endif +#endif /* OPENOCD_HELPER_JIM_NVP_H */